NORMTRN (Function) [Version 1.8 or later]


Normalizes homogeneous-transformation data.


NORMTRN(<homogeneous trans matrix>[ ,<NORMTRN option>])


This function normalizes data designated by <H-TransData>.
"Normalize" refers to transforming an orient vector to orthogonal vector against the base approach vector or transforming an approach or orient vector to its norm vector.
<NORMTRN option> is an omissible Result storage variable that should be an integer variable (Ver. 3.0 or later). Specifying this option does not stop programs even if execution of the NORMTRN causes an internal error, but assigns the error code into the specified variable.


DEFTRN 1t1,1t2
1t1=NORMTRN((350,0,450,0,1,0,0,0,-1))
1t1=NORMTRN(1t2)
lt2 = NORMTRN(lt1,li1)
'If execution of NORMTRN fails, assign the error code into
'variable li1 and then go to the next step.


Top