Advertisement

Optimized Rotations for a 3D engine

Started by February 02, 2000 07:18 PM
-1 comments, last by Moe 24 years, 10 months ago
I read an article by Chris Hargrove and I came across the following formula for rotatio around the x axis. NewY = (OldY*Cos(ThetaX)) - (OldZ*Sin(ThetaX)) ** X axis NewZ = (OldZ*Cos(ThetaX)) + (OldY*Sin(ThetaX)) (Copy NewY and NewZ into OldY and OldZ) He said it could be optimized by only doing a total of 9 multiplies. How can I do this?

This topic is closed to new replies.

Advertisement