LETX (Statement)


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


LETX {<vector variable>|<position variable>|<trans variable>}
= <X-axis component>


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



DEFPOS lp1, lp2
DEFVEC lv1, lv2
LETX lv1 = POSX(lv2)
'Assign the X-axis component of lv2 to that of lv1
LETX lp1 = POSX(lp2)
'Assign the X-axis component of lp2 to that of lp1


Top