Function | Effect |
MakeVec(pt1, pt2, outputVec) | Build a 6-bytes 3D vector out of two 6-bytes 3D points and stores the result in the 6 bytes starting at outputVec. All parameters must be pointers on 6-bytes areas. |
DotProd(vec1, vec2) | Performs the dot product of two 6-bytes 3D vectors and returns the result as a 16-bits signed number. |
CrossProd(vec1, vec2, outputVec) | Performs the cross product of two 6-bytes 3D vectors and stores the resulting vector in the 6 bytes starting at outputVec, scaled down by 128 to prevent overflow. All parameters must be pointers on 6-bytes areas. |
MultVec(vector, scalar, outputVec) | Multiplies a vector by a scalar and outputs the resulting vector in the 6 bytes starting at outputVec. vector and outputVec must be pointers on 6-bytes areas and scalar must be a signed 16-bits number. |