DEFTRN (Statement)


Declare a variable in homogeneous transform matrix.


DEFTRN <variablename>[=<trans constant>] [,<variablename> [=<trans constant>]...]


This statement declares the variable specified by <variablename> as a variable in homogeneous transform matrix.
Specifying an equal sign and constant immediately following <variablename> performs initialization at the same time in declaration.
More than one variable name can be declared at a time by delimiting those names with commas.



DEFTRN ltx, lty, ltz
'Declare ltx, lty, and ltz as variables in homogeneous
'transform matrix
DEFTRN ltx = (10, 10, 5, 20, 20, 10, 30, 30, 15)
'Declare ltx as a variable in homogeneous transform matrix
'and set the initial value (10, 10, 5, 20, 20, 10, 30, 30, 15)


Top