用户工具

站点工具


reference:language:degrees

差别

这里会显示出您选择的修订版和当前版本之间的差别。

到此差别页面的链接

两侧同时换到之前的修订记录 前一修订版
后一修订版
前一修订版
reference:language:degrees [2015/10/10 05:18]
nzhu
reference:language:degrees [2017/04/07 10:03] (当前版本)
行 2: 行 2:
  
 ===== 例子 ===== ===== 例子 =====
- +<code cpp>
 float rad = PI/4; float rad = PI/4;
 float deg = degrees(rad);​ float deg = degrees(rad);​
行 9: 行 9:
 Serial.print(deg);​ Serial.print(deg);​
 Serial.print("​ degrees"​);​ Serial.print("​ degrees"​);​
-Description Converts a radian measurement to its corresponding value in degrees. Radians and degrees are two ways of measuring the same thing. There are 360 degrees in a circle and 2*PI radians in a circle. For example, 90° = PI/2 = 1.5707964. All trigonometric methods in Wiring require their parameters to be specified in radians.+</code> 
 +描述 
 +将弧度转换为度.
 ==== 语法 ==== ==== 语法 ====
   
行 17: 行 19:
 angle int or float angle int or float
  
-Returns float+返回 float
reference/language/degrees.txt · 最后更改: 2017/04/07 10:03 (外部编辑)