I was going through chapter 14 and tried the various 3D math stuff and had a prblem with the selrp function.
Here is what I'm using:
Rotation: Y Axis
Start: 0 rads
Last: pi/2 rads, and pi rads
Percent: 0.5
Vertex: 1,0,0
Results with 90 degrees is a CW rotation (if looking down on Y) to approx. (.7, 0, -.7)
Results with 180 degrees is a CCW rotation to (0,0,1)
Results with -180 = (0,0,-1): what I was expecting from 180
Am I missing something?
Here is what I'm using:
Rotation: Y Axis
Start: 0 rads
Last: pi/2 rads, and pi rads
Percent: 0.5
Vertex: 1,0,0
Results with 90 degrees is a CW rotation (if looking down on Y) to approx. (.7, 0, -.7)
Results with 180 degrees is a CCW rotation to (0,0,1)
Results with -180 = (0,0,-1): what I was expecting from 180
Am I missing something?