在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表示弧度
