Why does OpenGL use degrees instead of radians?

后端 未结 5 1982
南方客
南方客 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:39

    I'd say that since OpenGL was designed with the end-user in mind, degrees were used because one can specify important angles (90, 180, 270 ...) with integers only, and so there is no need for a floating point GL_PI constant.

提交回复
热议问题