ajvector


Data type AjP3dVector

Ajax 3-D vector object.

Holds three floats

AjP3dVector is implemented as a pointer to a C data structure.

Alias name(s)

Name
AjS3dVector
AjO3dVector

Constructor(s)

NameDescription
aj3dVectorNewdefault constructor
aj3dVectorCreateconstructor initialising values of vector components

Destructor(s)

NameDescription
aj3dVectorDeldefault destructor

Operator(s)

NameDescription
aj3dVectorSumreturn sum of two vectors
aj3dVectorDotProductreturn dot product of two vectors
aj3dVectorCrossProductreturn cross product of two vectors
aj3dVectorAnglereturn angle between two vectors
aj3dVectorDihedralAnglereturn angle between two planes

Modifier(s)

NameDescription
aj3dVectorBetweenPointsreturn vector between two points

Cast(s)

NameDescription
aj3dVectorLengthreturn length of vector

Attributes

NameTypeDescription
xfloatx coordinate
yfloaty coordinate
zfloatz coordinate