Why does OpenGL use degrees instead of radians?

后端 未结 5 1976
南方客
南方客 2021-02-01 11:42

The OpenGL designers were never afraid of mathematics, and knowledge of linear algebra is essential for all but the simplest OpenGL applications. I think it can safely be assume

5条回答
  •  伪装坚强ぢ
    2021-02-01 12:42

    I think it is because you should be able to get an exact rotation matrix for certain angles like 90 or 180 degrees. Like other people here has specified, if you use pi/2 instead of 90 degrees, rounding errors may lead to a transformation matrix that almost performs a rotation by 90 degrees.

提交回复
热议问题