码迷,mamicode.com
首页 > 其他好文 > 详细

Qt中的角度转弧度

时间:2018-09-08 16:51:01      阅读:752      评论:0      收藏:0      [点我收藏+]

标签:因此   角度   operation   而不是   return   returns   turn   als   三角函数   

在Qt中,qAsin(),qAtan2()等三角函数的返回值是弧度而不是角度,因此要将弧度转化为角度。

弧度=角度*Pi/180

以qAtan()函数为例

qreal qAtan(qreal v)

Returns the arctangent of v as an angle in radians. Arctangent is the inverse operation of tangent.

See also qTan(), qAcos(), and qAsin().

其中radians表示弧度

Qt中的角度转弧度

标签:因此   角度   operation   而不是   return   returns   turn   als   三角函数   

原文地址:https://www.cnblogs.com/Manual-Linux/p/9587878.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!