球坐标系与笛卡尔坐标系相互转换

这是个好网站https://www.scratchapixel.com/lessons/mathematics-physics-for-computer-graphics/mathematics-of-shading

球坐标系到笛卡尔坐标系

笛卡尔坐标系到球坐标系

球坐标系的好处之一就是如果要旋转物体,那么只需加减角度就行了。

发布了194 篇原创文章 · 获赞 8 · 访问量 9878

猜你喜欢

转载自blog.csdn.net/qq_43439240/article/details/103732148