DCL:GRPH1:STPACK: Transformation Functions:Explanation of Subroutines: Coordinate Transformation
Performs 3-D perspective transformation.
rx, ry = NumRu::DCL.stfpr3(x,y,z)
NumRu::DCL.stspr3(xfc,yfc,zfc,theta,phi,psi,fac,zview,rxoff,ryoff)
ux,uy,uz (R) The coordinates in UC. rx,ry (R) The coordinates in RC. itr3 (I) Transformation function number xfc,yfc,zfc (R) The coordinates of the center of focus theta,phi,psi (R) The angle of rotation fac (R) The scaling factor zview (R) The Z coordinate of the eye point rxoff,ryoff (R) The offset
- (a)
- These functions perform the following operations.
- Parallel transformation with the center of focus as the origin.
- Rotation of (THETA,PHI,PSI) around the origin..
- Multiplies the coordinate values by a factor of fac.
- With the eye point at (0,0,ZVIEW), projects a point onto the X-Y plane.
- Adds an offset of (RXOFF,RYOFF) to the projected coordinate value.