|
|
David Fontaine wrote:
> This is exactly what matrices are for! But here:
>
> Rotate x: <x,y,z> -> <x,y*cos-z*sin,z*cos+y*sin>
> Rotate y: <x,y,z> -> <x*cos+z*sin,y,z*cos-x*sin>
> Rotate z: <x,y,z> -> <x*cos-y*sin,y*cos+x*sin,z>
This is just for left-handed systems BTW.
--
David Fontaine <dav### [at] faricynet> ICQ 55354965
My raytracing gallery: http://davidf.faricy.net/
Post a reply to this message
|
|