
Chapter 9 Declaration Statements
9-15
DEFTRN (Statement)
Function
Declares a homogeneous transformation type variable.
Format
DEFTRN <Variable name>[=<Homogeneous transformation type constant>]
[,<Variable name>[=<Homogeneous transformation type constant>]...]
Explanation
This statement declares a variable designated by <Variable name> as a
homogeneous transformation type variable. By writing a constant after
<Variable name>, initialization can be carried out simultaneously with the
declaration.
Multiple variable names can be declared at a time by delineating the names
using “,”.
Related Terms
DEFJNT, DEFPOS, DEFVEC
Example
DEFTRN ltx, lty, ltz 'Declares ltx, lty, and ltz as homogeneous transformation type
'variables.
DEFTRN ltx = (10, 10, 5, 20, 20, 10, 30, 30, 15)
'Declares ltx as a homogeneous transformation type variable
'and sets the initial value to
'(10, 10, 5, 20, 20, 10, 30, 30, 15).
Komentarze do niniejszej Instrukcji