LETZ (Statement)


Assign a value to the Z-axis component of the vector variable, position variable, or variable in homogeneous transform matrix.


LETZ {<vector variable>|<position variable>|<trans variable>}
= <Z-axis component>


This statement assigns the value of <Z-axis component> on the right-hand side to the Z-axis component of <vector variable>, <position variable> or <trans variable> on the left-hand side.



DEFPOS lp1, lp2
DEFVEC lv1, lv2
LETZ lv1 = POSZ(lv2)
'Assign the Z-axis component of lv2 to that of lv1
LETZ lp1 = POSZ(lp2)
'Assign the Z-axis component of lp2 to that of lp1


Top