用户工具

站点工具


reference:language:radians

差别

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

到此差别页面的链接

两侧同时换到之前的修订记录 前一修订版
后一修订版
前一修订版
reference:language:radians [2015/10/10 02:34]
nzhu
reference:language:radians [2017/04/07 10:03] (当前版本)
行 1: 行 1:
 ====== radians() ====== ====== radians() ======
  
-===== Examples ​===== +===== 例子 ​===== 
- +<code cpp>
 float deg = 45.0; float deg = 45.0;
 float rad = radians(deg);​ float rad = radians(deg);​
-==== Description ​==== +</​code>​ 
- Converts a degree measurement to its corresponding value in radians. 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+==== 描述 ​==== 
-=== Syntax ​===+从度数转换为弧度
 +=== 语法 ​===
   
 radians(angle) radians(angle)
-== Parameters ​==+== 参数 ​==
   
-angle int ​or float +angle  int 或者float 
-Returns float+ 
 +返回 float
reference/language/radians.txt · 最后更改: 2017/04/07 10:03 (外部编辑)