大家好,又见面了,我是你们的朋友全栈君。
在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表示弧度
转载于:https://www.cnblogs.com/Manual-Linux/p/9587878.html
发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/149204.html原文链接:https://javaforall.net