Re: A89: Re: 3D rotation of plots
[Prev][Next][Index][Thread]
Re: A89: Re: 3D rotation of plots
>Wouldn't it be easier to display it like this:
>
>around x-axis:
>x'=1*x + 0*y + 0*z
>y'=0*x + cosT*y + sinT*z
>z'=0*x + -sinT*y + cosT*z
>
>around y-axis:
>x'=cosT*x + 0*y + sinT*z
>y'=0*x + 1*y + 0*z
>z'=-sinT*x + 0*y + cosT*z
>
>around z-axis:
>x'=cosT*x + sinT*y + 0*z
>y'=-sinT*x + cosT*y + 0*z
>z'=0*x + 0*y + 1*z
Yes, this would be easier in straight asm. However, if someone made a
matrix multiply function it would be much simpler to use matrix multiply.
The matrix system is also faster if you want to perform more then one
transformation at a time. You simply add the two transformation matrixs
and multiply that matrix by the list of points. There is no savings of
time to do one transformation, but doing n transformation is n times as
fast with the matrix method.
--Nate
References: