Vectors
25 functions. Also as Markdown for agents.
- BIN_fnc_eulerToVector
- BIN_fnc_matrixMultiply
- BIN_fnc_matrixTranspose
- BIN_fnc_vectorToEuler
- BIS_fnc_clampVectorClamps vector values between provided min/max boundaries.
- BIS_fnc_crossProductReturn the cross product of two 3D vectors.
- BIS_fnc_dotProductDot product of two vectors.
- BIS_fnc_findLookAtGiven target location, calculates orientation vectors facing direction
- BIS_fnc_interpolateVectorInterpolates vector to target, scaled by distance. Starts very fast and smoothes out.
- BIS_fnc_interpolateVectorConstantInterpolates vector to target linearly.
- BIS_fnc_isEqualVectorChecks whether two vectors are equal with given tolerance.
- BIS_fnc_lerpVectorGiven two different vectors A and B, think of a straight line drawn between them, *alpha* saying how far along that line is the wanted vector.
- BIS_fnc_magnitudeReturns the magnitude of an array of numbers. The vector can have any number of elements.
- BIS_fnc_magnitudeSqrReturns the square magnitude of an array of numbers. The vector can have any number of elements.
- BIS_fnc_multiplySquareMatrixByVector
- BIS_fnc_rotateVector2DThis function returns a 2D vector rotated a specified number of degrees around the origin.
- BIS_fnc_rotateVector3DRotates the vector around the given axis by the given angle
- BIS_fnc_transformVectorDirAndUpRotates both vectorDir and vectorUp on 3 axes: z (yaw), x (pitch) and y (roll). Positive angle direction is according to the right hand rule.
- BIS_fnc_unitVectorUnit Vector
- BIS_fnc_vectorAddReturns the sum of two vectors.
- BIS_fnc_vectorDiffReturns a vector that is the difference between two vectors.
- BIS_fnc_vectorDirAndUpRelativeReturns vectorDirAndUp of object 1 relative to object 2
- BIS_fnc_vectorDivideDivides vector by scalar, by dividing all vector elements.
- BIS_fnc_vectorFromXToYReturns a unit vector that 'points' from *vector1* to *vector2*. This is a very useful function as it can be used with the velocity command to move…
- BIS_fnc_vectorMultiplyMultiplies 3D vector by a scalar.