|
|
> The effect is much simpler: when you do
>
> translate vrotate(A, B)
>
> vrotate calculates where A will end up after being rotated around the origin by
> B. It returns a vector which is then passed to translate. So the effect is as
> if you had simply translated the object from the origin to the new point.
Right. I made some annotations in my SDL code, and tried to show with the blue
line that that's exactly what it does.
I wouldn't say that the documentation is "clear", although it does say exactly
what vrotate() does. It just takes reading it 3 or 4 times to get it.
I hate that an <x,y,z> coordinate is referred to as a "vector".
To me, vector is a magnitude with a direction. I suppose if you're looking at
it from the perspective of moving _from_ the origin to that point, then yes, but
in my mind, it's JUST a point.
And the direction of a vector is actually important when using something like
trace(), which I learned when trying to understand THAT command...
Post a reply to this message
|
|