VECTOR



DISTANCE

Click box to see full description


This function returns the distance between A and B. 

LENGTH

Click box to see full description


This function returns the length of vector V. 

POINTXFORM

Click box to see full description


This returns a vector transformed by matrix A.

PTLINEDIST

Click box to see full description


This function returns the perpendicular distance 
between a point Q and the line defined by A and B. 

ROTATEVECTOR

Click box to see full description


This is a transformation function which rotates the input vector, V 
by X degrees about the x-axis, Y degrees about the y-axis and
Z degrees about the z-axis.

SCALEVECTOR

Click box to see full description


This is a transformation function which scales the input vector, A 
by X amount in the x-axis, Y amount in the y-axis and
Z amount in the z-axis.

XFORMVECTOR

Click box to see full description


This returns a vector transformed by matrix A.

XLATEVECTOR

Click box to see full description


This is a transformation function which translates 
the input vector, V, by the XLATE vector.

CALCULATENORMAL

Click box to see full description


This function returns the normal vector of the triangle PUV.
If any of these vectors are of zero length,
then a zero length vector is returned.

CROSSPRODUCT

Click box to see full description


Result is the vector perpendicular to both A and B.
|AxB| = |A||B|sin@, where @ is the angle between A and B.

DETERMINANT

Click box to see full description


This function returns the determinant of vectors A, B and C.
| Ax Bx Cx | = Ax * ((By*Cz) - (Cy*Bz)) - 
| Ay By Cy |   Bx * ((Ay*Cz) - (Cy*Az)) +
| Az Bz Cz |   Cx * ((Ay*Bz) - (By*Az)).

DOTPRODUCT

Click box to see full description


This function returns a float derived by multiplying 
the corresponding components of A and B and then summing the products.
A.B = |A||B|cos@, where @ is the angle between A and B.

FACEFORWARD

Click box to see full description


The result is A, if A and B form an acute angle 
when placed head to tail, otherwise the result is -A.

NORMALIZE

Click box to see full description


This returns a unit length vector, a vector of magnitude 1,
in the same direction as vector A.

IDENTMATRIX

Click box to see full description


This generates the identity matrix.

INVERTMATRIX

Click box to see full description


This returns the inverse of matrix A,
if the matrix cannot be inverted the return is false.

ROTATIONMATRIX

Click box to see full description


This returns a matrix with a ROT transformation.

SCALINGMATRIX

Click box to see full description


This returns a matrix with a SCALE transformation.

TRANSFORMMATRIX

Click box to see full description


This returns a matrix with SCALE, ROT and XLATE transformations;
using GO gimbaling order and RP rotation priority.

TRANSLATIONMATRIX

Click box to see full description


This returns a matrix with XLATE translations.

CONCATMATRIX

Click box to see full description


This function concatenates matrices. 
Several matrices may be specified;
they will all be multiplied together.

MATRIXPROD

Click box to see full description


This returns the product of A and B.

POINT_TO_CAMERA

Click box to see full description


This function transforms internal vector, V 
to the camera coordinate system.

POINT_TO_OBJECT

Click box to see full description


This function transforms internal vector, V 
to the object coordinate system.

POINT_TO_WORLD

Click box to see full description


This function transforms internal vector, V 
to the world coordinate system.

POINT_FROM_CAMERA

Click box to see full description


This function transforms vector V in camera space to internal space.

POINT_FROM_OBJECT

Click box to see full description


This function transforms vector V in object space to internal space.

POINT_FROM_WORLD

Click box to see full description


This function transforms vector V in world space to internal space.

VECTOR_TO_CAMERA

Click box to see full description


This function transforms internal vector, V 
to the camera coordinate system.

VECTOR_TO_OBJECT

Click box to see full description


This function transforms internal vector, V 
to the object coordinate system.

VECTOR_TO_WORLD

Click box to see full description


This function transforms internal vector, V 
to the world coordinate system.

VECTOR_FROM_CAMERA

Click box to see full description


This function transforms vector V in camera space to internal space.

VECTOR_FROM_OBJECT

Click box to see full description


This function transforms vector V in object space to internal space.

VECTOR_FROM_WORLD

Click box to see full description


This function transforms vector V in world space to internal space.

© Copyright 1996,1998 Cinema Graphics Inc. All Rights reserved.