Description Transforms a direction vector from one coordinate system to another.
Syntax TransformDirection fromCoord, toCoord, A, B, C
Parameters fromCoord As Long Nonde number of the entity whose coordinate system to convert from.
toCoord As Long Node number of the entity whose coordinate system to convert to.
A As Double X component of the direction vector.
B As Double Y component of the direction vector.
C As Double Z component of the direction vector.
Remarks This subroutine transforms a direction vector from one coordinate system to another. If there is a problem, the subroutine sets an error and returns without modifying A,B, or C.
If either the fromCoord or toCoord parameter represents the global coordinate system, then use a value of -1
This subroutine modifies the input values of A,B,C and outputs the transformed values in A,B,C. For example, this script transforms the direction vector (0,0,1) in the coordinate system of node 4 into a new vector (A,B,C) in the coordinate system of node 8.
a=0:b=0:c=1
See Also Examples
|