Manual-Linux

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

分类:

技术点:

相关文章:

  • 2022-01-02
  • 2022-01-02
  • 2021-09-17
猜你喜欢
  • 2022-01-02
  • 2022-01-02
  • 2021-11-24
  • 2022-01-02
相关资源
相似解决方案