DCL:GRPH1:STPACK: Transformation Functions:Explanation of Subroutines: Coordinate Transformation
Performs a 2-D perspective transformation.
CALL STFPR2(VX,VY,RX,RY)
CALL STIPR2(RX,RY,VX,VY)
CALL STSPR2(IX,IY,SECT)
VX,VY (R) The coordinates in VC. RX,RY (R) The coordinates in RC. IX,IY (I) Specifies by number which axes in the 3-D space will correspond to the X- and Y-axes in 2-D. (1: X axis; 2: Y axis; 3: Z axis) When a negative value is specified, the axes are inversed. SECT (R) The coordinates for the point of intersection of the axis and the 2-D plane.
- (a)
- The parameters for perspective transformation are common with 3-D perspective transformation.