Static Public Member Functions | |
XFCIMPORT XFcQuaternion & | quaternionRotationX (XFcQuaternion &aQuat, REAL aAngle) |
Creates a quaternion that rotates around X axis. | |
XFCIMPORT XFcQuaternion & | quaternionRotationY (XFcQuaternion &aQuat, REAL aAngle) |
Creates a quaternion that rotates around Y axis. | |
XFCIMPORT XFcQuaternion & | quaternionRotationZ (XFcQuaternion &aQuat, REAL aAngle) |
Creates a quaternion that rotates around Z axis. | |
XFCIMPORT XFcQuaternion & | quaternionRotationXYZ (XFcQuaternion &aQuat, REAL aXAngle, REAL aYAngle, REAL aZAngle) |
Creates a quaternion that rotates around X, Y and Z axes. | |
XFCIMPORT XFcQuaternion & | quaternionRotationVector (XFcQuaternion &aQuat, XFcVector3 &aVector, REAL aAngle) |
Creates a quaternion that rotates around given vector. | |
XFCIMPORT XFcQuaternion & | quaternionRotateX (XFcQuaternion &aQuat, REAL aAngle) |
Rotates a quaternion around X axis. | |
XFCIMPORT XFcQuaternion & | quaternionRotateY (XFcQuaternion &aQuat, REAL aAngle) |
Rotates a quaternion around Y axis. | |
XFCIMPORT XFcQuaternion & | quaternionRotateZ (XFcQuaternion &aQuat, REAL aAngle) |
Rotates a quaternion around Z axis. | |
XFCIMPORT XFcQuaternion & | quaternionRotateXYZ (XFcQuaternion &aQuat, REAL aXAngle, REAL aYAngle, REAL aZAngle) |
Rotates a quaternion around X, Y and Z axes. | |
XFCIMPORT XFcQuaternion & | quaternionRotateVector (XFcQuaternion &aQuat, XFcVector3 &aVec, REAL aAngle) |
Rotates a quaternion around given vector. | |
XFCIMPORT XFcQuaternion & | quaternionIdentity (XFcQuaternion &aQuat) |
Creates an identity quaternion. | |
XFCIMPORT void | quaternionTransform (XFcQuaternion &aQuat, XFcVector3 &aSrc, XFcVector3 &aDst) |
Transform a vector by a quaternion. | |
XFCIMPORT void | quaternionLookAt (XFcQuaternion &aQuat, XFcVector3 &aPos, XFcVector3 &aAt, XFcVector3 &aUp) |
Creates a quaternion from a look-at vector definition. | |
XFCIMPORT void | quaternionFromMatrix (XFcQuaternion &aQuat, XFcMatrix4 &aMatrix) |
Creates a quaternion from a matrix. | |
XFCIMPORT void | quaternionFromMatrix (XFcQuaternion &aQuat, XFcMatrix3 &aMatrix) |
Creates a quaternion from a matrix. | |
XFCIMPORT void | matrixFromQuaternion (XFcMatrix4 &aMatrix, XFcQuaternion &aQuat) |
Creates matrix from a quaternion. | |
XFCIMPORT void | quaternionSlerp (XFcQuaternion &aFrom, XFcQuaternion &aTo, REAL aPos, XFcQuaternion &aResult) |
Interpolates a quaternion using spherical linear interpolation. | |
XFCIMPORT XFcMatrix4 & | matrixIdentity (XFcMatrix4 &aMatrix) |
Creates an identity matrix. | |
XFCIMPORT XFcMatrix4 & | matrixRotationX (XFcMatrix4 &aMatrix, REAL aAngle) |
Creates a matrix that rotates around X axis. | |
XFCIMPORT XFcMatrix4 & | matrixRotationY (XFcMatrix4 &aMatrix, REAL aAngle) |
Creates a matrix that rotates around Y axis. | |
XFCIMPORT XFcMatrix4 & | matrixRotationZ (XFcMatrix4 &aMatrix, REAL aAngle) |
Creates a matrix that rotates around Z axis. | |
XFCIMPORT XFcMatrix4 & | matrixTranslation (XFcMatrix4 &aMatrix, const XFcVector3 &aOffset) |
Creates a translation matrix. | |
XFCIMPORT XFcMatrix4 & | matrixScaling (XFcMatrix4 &aMatrix, REAL aScale) |
Creates a scaling matrix. | |
XFCIMPORT XFcMatrix4 & | matrixRotateX (XFcMatrix4 &aMatrix, REAL aAngle) |
Rotates a matrix around X axis. | |
XFCIMPORT XFcMatrix4 & | matrixRotateY (XFcMatrix4 &aMatrix, REAL aAngle) |
Rotates a matrix around Y axis. | |
XFCIMPORT XFcMatrix4 & | matrixRotateZ (XFcMatrix4 &aMatrix, REAL aAngle) |
Rotates a matrix around Z axis. | |
XFCIMPORT XFcMatrix4 & | matrixTranslate (XFcMatrix4 &aMatrix, const XFcVector3 &aOffset) |
Translates a matrix by offset. | |
XFCIMPORT XFcMatrix4 & | matrixScale (XFcMatrix4 &aMatrix, REAL aScale) |
Scales a matrix by a value. | |
XFCIMPORT void | matrixTransform (const XFcMatrix4 &aMatrix, const XFcVector3 &aSrc, XFcVector3 &aDst) |
Transforms a vector by a matrix. | |
XFCIMPORT void | matrixTransformNormal (const XFcMatrix4 &aMatrix, const XFcVector3 &aSrc, XFcVector3 &aDst) |
Transforms a vector by a matrix without translation information (affine transform). | |
XFCIMPORT XFcMatrix4 & | matrixTranspose (XFcMatrix4 &aMatrix) |
Transposes a matrix. | |
XFCIMPORT XFcMatrix4 & | matrixInverse (XFcMatrix4 &aMatrix) |
Inverses a matrix. | |
XFCIMPORT XFcMatrix4 & | matrixInverseAffine (XFcMatrix4 &aMatrix) |
Inverses a matrix. Handles only affine 3D transformation matricies. | |
XFCIMPORT XFcMatrix4 & | matrixInverseFast (XFcMatrix4 &aMatrix) |
Inverses a matrix. Handles only 3D matricies with rotation and translation. | |
XFCIMPORT void | matrixNormalize (XFcMatrix4 &aMatrix) |
Normalizes a matrix. | |
XFCIMPORT void | matrixLookAt (XFcMatrix4 &aMatrix, const XFcVector3 &aPos, const XFcVector3 &aAt, const XFcVector3 &aUp) |
Creates a look-at matrix. | |
XFCIMPORT void | matrixToProjection (XFcMatrix4 &aMatrix, REAL aHeight, REAL aWidth, REAL aFov, REAL aZNear, REAL aZFar) |
Creates a projection matrix. | |
XFCIMPORT void | matrixToProjectionOffCenter (XFcMatrix4 &aMatrix, REAL aHeight, REAL aWidth, REAL aFov, REAL aZNear, REAL aZFar, REAL aLeft, REAL aRight, REAL aTop, REAL aBottom) |
Creates an off-center projection matrix. Left, right, bottom and top are in screen coordinates. | |
XFCIMPORT void | matrixToProjectionOffCenter (XFcMatrix4 &aMatrix, REAL aLeft, REAL aRight, REAL aBottom, REAL aTop, REAL aNear, REAL aFar) |
Creates an off-center projection matrix. Left, right, bottom and top are in cameraspace coordinates. | |
XFCIMPORT void | matrixProject (XFcMatrix4 &aMatrix, const XFcVector4 &aSrc, XFcVector4 &aDst) |
Projects a vector by a matrix. | |
XFCIMPORT XFcMatrix3 & | matrixIdentity (XFcMatrix3 &aMatrix) |
Creates an identity matrix. | |
XFCIMPORT XFcMatrix3 & | matrixRotationX (XFcMatrix3 &aMatrix, REAL aAngle) |
Creates a matrix that rotates around X axis. | |
XFCIMPORT XFcMatrix3 & | matrixRotationY (XFcMatrix3 &aMatrix, REAL aAngle) |
Creates a matrix that rotates around Y axis. | |
XFCIMPORT XFcMatrix3 & | matrixRotationZ (XFcMatrix3 &aMatrix, REAL aAngle) |
Creates a matrix that rotates around Z axis. | |
XFCIMPORT XFcMatrix3 & | matrixScaling (XFcMatrix3 &aMatrix, REAL aScale) |
Creates a scaling matrix. | |
XFCIMPORT XFcMatrix3 & | matrixRotateX (XFcMatrix3 &aMatrix, REAL aAngle) |
Rotates a matrix around X axis. | |
XFCIMPORT XFcMatrix3 & | matrixRotateY (XFcMatrix3 &aMatrix, REAL aAngle) |
Rotates a matrix around Y axis. | |
XFCIMPORT XFcMatrix3 & | matrixRotateZ (XFcMatrix3 &aMatrix, REAL aAngle) |
Rotates a matrix around Z axis. | |
XFCIMPORT XFcMatrix3 & | matrixScale (XFcMatrix3 &aMatrix, REAL aScale) |
Scales a matrix by value. | |
XFCIMPORT void | matrixTransform (const XFcMatrix3 &aMatrix, const XFcVector3 &aSrc, XFcVector3 &aDst) |
Transforms a vector by matrix. | |
XFCIMPORT XFcMatrix3 & | matrixTranspose (XFcMatrix3 &aMatrix) |
Transposes a matrix. | |
XFCIMPORT XFcMatrix3 & | matrixInverse (XFcMatrix3 &aMatrix) |
Inverses a matrix. | |
XFCIMPORT XFcMatrix3 & | matrixInverseAffine (XFcMatrix3 &aMatrix) |
Inverses a matrix. Handles only affine 3D transformation matricies. | |
XFCIMPORT XFcMatrix3 & | matrixInverseFast (XFcMatrix3 &aMatrix) |
Inverses a matrix. Handles only 3D rotation matrix. | |
XFCIMPORT void | matrixNormalize (XFcMatrix3 &aMatrix) |
Normalizes a matrix. | |
XFCIMPORT void | matrixFromQuaternion (XFcMatrix3 &aMatrix, XFcQuaternion &aQuat) |
Creates a matrix from quaternion. | |
XFCIMPORT XFcMatrix3 & | matrixRotation2D (XFcMatrix3 &aMatrix, REAL aAngle) |
Creates a matrix that rotates around Z axis. | |
XFCIMPORT XFcMatrix3 & | matrixRotate2D (XFcMatrix3 &aMatrix, REAL aAngle) |
Rotates a matrix around Z axis. | |
XFCIMPORT XFcMatrix3 & | matrixTranslation2D (XFcMatrix3 &aMatrix, const XFcVector2 &aOffset) |
Creates a translation matrix. | |
XFCIMPORT XFcMatrix3 & | matrixScaling2D (XFcMatrix3 &aMatrix, REAL aScale) |
Creates a scaling matrix. | |
XFCIMPORT XFcMatrix3 & | matrixTranslate2D (XFcMatrix3 &aMatrix, const XFcVector2 &aOffset) |
Translates a matrix by offset. | |
XFCIMPORT XFcMatrix3 & | matrixScale2D (XFcMatrix3 &aMatrix, REAL aScale) |
Scales a matrix by a value. | |
XFCIMPORT void | matrixTransform2D (const XFcMatrix3 &aMatrix, const XFcVector2 &aSrc, XFcVector2 &aDst) |
Transforms a vector by a matrix. | |
XFCIMPORT XFcMatrix3 & | matrixInverseAffine2D (XFcMatrix3 &aMatrix) |
Inverses a matrix. Handles only 2D affine transformation. | |
XFCIMPORT XFcMatrix3 & | matrixInverseFast2D (XFcMatrix3 &aMatrix) |
Inverses a matrix. Handles only 2D rotation and translation. | |
XFCIMPORT XFcFixed | floor (XFcFixed aArg) |
Removes any fractional part from the value. | |
XFCIMPORT XFcFixed | ceil (XFcFixed aArg) |
Rounds the value up to the next larger integer. | |
XFCIMPORT XFcFixed | sqr (XFcFixed aArg) |
Calculates square of the value. | |
XFCIMPORT XFcFixed | sqrt (XFcFixed aArg) |
Calculates square root of the value. | |
XFCIMPORT XFcFixed | sqrtFast (XFcFixed value) |
Calculates square root of the value, sacrificing accuracy for speed. | |
XFCIMPORT XFcFixed | sin (XFcFixed aArg) |
Calculates sin of the value in radians. | |
XFCIMPORT XFcFixed | cos (XFcFixed aArg) |
Calculates cos of the value in radians. | |
XFCIMPORT XFcFixed | sinFast (XFcFixed value) |
Calculates sin of the value in radians, sacrificing accuracy for speed. | |
XFCIMPORT XFcFixed | cosFast (XFcFixed value) |
Calculates cos of the value in radians, sacrificing accuracy for speed. | |
XFCIMPORT XFcFixed | acosFast (XFcFixed aArg) |
Calculates acos of the value in radians, sacrificing accuracy for speed. | |
XFCIMPORT XFcFixed | abs (XFcFixed aArg) |
Returns the absolute value of the argument. | |
XFCIMPORT XFcFixed | atan2 (XFcFixed aY, XFcFixed aX) |
Calculates the angle (in radians) of the X-axis and the point (x,y). |
Contains quaternion, matrix and vector functions as well as math primitives like sin, cos, etc.
|
Returns the absolute value of the argument.
|
|
Calculates acos of the value in radians, sacrificing accuracy for speed.
|
|
Calculates the angle (in radians) of the X-axis and the point (x,y).
|
|
Rounds the value up to the next larger integer.
|
|
Calculates cos of the value in radians.
|
|
Calculates cos of the value in radians, sacrificing accuracy for speed.
|
|
Removes any fractional part from the value.
|
|
Creates a matrix from quaternion.
|
|
Creates matrix from a quaternion.
|
|
Creates an identity matrix.
|
|
Creates an identity matrix.
|
|
Inverses a matrix.
|
|
Inverses a matrix.
|
|
Inverses a matrix. Handles only affine 3D transformation matricies.
|
|
Inverses a matrix. Handles only affine 3D transformation matricies.
|
|
Inverses a matrix. Handles only 2D affine transformation.
|
|
Inverses a matrix. Handles only 3D rotation matrix.
|
|
Inverses a matrix. Handles only 3D matricies with rotation and translation.
|
|
Inverses a matrix. Handles only 2D rotation and translation.
|
|
Creates a look-at matrix.
|
|
Normalizes a matrix.
|
|
Normalizes a matrix.
|
|
Projects a vector by a matrix.
|
|
Rotates a matrix around Z axis.
|
|
Rotates a matrix around X axis.
|
|
Rotates a matrix around X axis.
|
|
Rotates a matrix around Y axis.
|
|
Rotates a matrix around Y axis.
|
|
Rotates a matrix around Z axis.
|
|
Rotates a matrix around Z axis.
|
|
Creates a matrix that rotates around Z axis.
|
|
Creates a matrix that rotates around X axis.
|
|
Creates a matrix that rotates around X axis.
|
|
Creates a matrix that rotates around Y axis.
|
|
Creates a matrix that rotates around Y axis.
|
|
Creates a matrix that rotates around Z axis.
|
|
Creates a matrix that rotates around Z axis.
|
|
Scales a matrix by value.
|
|
Scales a matrix by a value.
|
|
Scales a matrix by a value.
|
|
Creates a scaling matrix.
|
|
Creates a scaling matrix.
|
|
Creates a scaling matrix.
|
|
Creates a projection matrix.
|
|
Creates an off-center projection matrix. Left, right, bottom and top are in cameraspace coordinates.
|
|
Creates an off-center projection matrix. Left, right, bottom and top are in screen coordinates.
|
|
Transforms a vector by matrix.
|
|
Transforms a vector by a matrix.
|
|
Transforms a vector by a matrix.
|
|
Transforms a vector by a matrix without translation information (affine transform).
|
|
Translates a matrix by offset.
|
|
Translates a matrix by offset.
|
|
Creates a translation matrix.
|
|
Creates a translation matrix.
|
|
Transposes a matrix.
|
|
Transposes a matrix.
|
|
Creates a quaternion from a matrix.
|
|
Creates a quaternion from a matrix.
|
|
Creates an identity quaternion.
|
|
Creates a quaternion from a look-at vector definition.
|
|
Rotates a quaternion around given vector.
|
|
Rotates a quaternion around X axis.
|
|
Rotates a quaternion around X, Y and Z axes.
|
|
Rotates a quaternion around Y axis.
|
|
Rotates a quaternion around Z axis.
|
|
Creates a quaternion that rotates around given vector.
|
|
Creates a quaternion that rotates around X axis.
|
|
Creates a quaternion that rotates around X, Y and Z axes.
|
|
Creates a quaternion that rotates around Y axis.
|
|
Creates a quaternion that rotates around Z axis.
|
|
Interpolates a quaternion using spherical linear interpolation.
|
|
Transform a vector by a quaternion. This is generally slower than a transform with a matrix, so matrices are better for big amounts of vectors. |
|
Calculates sin of the value in radians.
|
|
Calculates sin of the value in radians, sacrificing accuracy for speed.
|
|
Calculates square of the value.
|
|
Calculates square root of the value.
|
|
Calculates square root of the value, sacrificing accuracy for speed.
|
![]() | ||||
![]() |
Confidential Copyright © 2002-2003 Fathammer | with doxygen by Dimitri van Heesch |