Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

XFcMath Class Reference

Static collection of math functions. More...

List of all members.

Static Public Member Functions

XFCIMPORT XFcQuaternionquaternionRotationX (XFcQuaternion &aQuat, REAL aAngle)
 Creates a quaternion that rotates around X axis.

XFCIMPORT XFcQuaternionquaternionRotationY (XFcQuaternion &aQuat, REAL aAngle)
 Creates a quaternion that rotates around Y axis.

XFCIMPORT XFcQuaternionquaternionRotationZ (XFcQuaternion &aQuat, REAL aAngle)
 Creates a quaternion that rotates around Z axis.

XFCIMPORT XFcQuaternionquaternionRotationXYZ (XFcQuaternion &aQuat, REAL aXAngle, REAL aYAngle, REAL aZAngle)
 Creates a quaternion that rotates around X, Y and Z axes.

XFCIMPORT XFcQuaternionquaternionRotationVector (XFcQuaternion &aQuat, XFcVector3 &aVector, REAL aAngle)
 Creates a quaternion that rotates around given vector.

XFCIMPORT XFcQuaternionquaternionRotateX (XFcQuaternion &aQuat, REAL aAngle)
 Rotates a quaternion around X axis.

XFCIMPORT XFcQuaternionquaternionRotateY (XFcQuaternion &aQuat, REAL aAngle)
 Rotates a quaternion around Y axis.

XFCIMPORT XFcQuaternionquaternionRotateZ (XFcQuaternion &aQuat, REAL aAngle)
 Rotates a quaternion around Z axis.

XFCIMPORT XFcQuaternionquaternionRotateXYZ (XFcQuaternion &aQuat, REAL aXAngle, REAL aYAngle, REAL aZAngle)
 Rotates a quaternion around X, Y and Z axes.

XFCIMPORT XFcQuaternionquaternionRotateVector (XFcQuaternion &aQuat, XFcVector3 &aVec, REAL aAngle)
 Rotates a quaternion around given vector.

XFCIMPORT XFcQuaternionquaternionIdentity (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 XFcMatrix4matrixIdentity (XFcMatrix4 &aMatrix)
 Creates an identity matrix.

XFCIMPORT XFcMatrix4matrixRotationX (XFcMatrix4 &aMatrix, REAL aAngle)
 Creates a matrix that rotates around X axis.

XFCIMPORT XFcMatrix4matrixRotationY (XFcMatrix4 &aMatrix, REAL aAngle)
 Creates a matrix that rotates around Y axis.

XFCIMPORT XFcMatrix4matrixRotationZ (XFcMatrix4 &aMatrix, REAL aAngle)
 Creates a matrix that rotates around Z axis.

XFCIMPORT XFcMatrix4matrixTranslation (XFcMatrix4 &aMatrix, const XFcVector3 &aOffset)
 Creates a translation matrix.

XFCIMPORT XFcMatrix4matrixScaling (XFcMatrix4 &aMatrix, REAL aScale)
 Creates a scaling matrix.

XFCIMPORT XFcMatrix4matrixRotateX (XFcMatrix4 &aMatrix, REAL aAngle)
 Rotates a matrix around X axis.

XFCIMPORT XFcMatrix4matrixRotateY (XFcMatrix4 &aMatrix, REAL aAngle)
 Rotates a matrix around Y axis.

XFCIMPORT XFcMatrix4matrixRotateZ (XFcMatrix4 &aMatrix, REAL aAngle)
 Rotates a matrix around Z axis.

XFCIMPORT XFcMatrix4matrixTranslate (XFcMatrix4 &aMatrix, const XFcVector3 &aOffset)
 Translates a matrix by offset.

XFCIMPORT XFcMatrix4matrixScale (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 XFcMatrix4matrixTranspose (XFcMatrix4 &aMatrix)
 Transposes a matrix.

XFCIMPORT XFcMatrix4matrixInverse (XFcMatrix4 &aMatrix)
 Inverses a matrix.

XFCIMPORT XFcMatrix4matrixInverseAffine (XFcMatrix4 &aMatrix)
 Inverses a matrix. Handles only affine 3D transformation matricies.

XFCIMPORT XFcMatrix4matrixInverseFast (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 XFcMatrix3matrixIdentity (XFcMatrix3 &aMatrix)
 Creates an identity matrix.

XFCIMPORT XFcMatrix3matrixRotationX (XFcMatrix3 &aMatrix, REAL aAngle)
 Creates a matrix that rotates around X axis.

XFCIMPORT XFcMatrix3matrixRotationY (XFcMatrix3 &aMatrix, REAL aAngle)
 Creates a matrix that rotates around Y axis.

XFCIMPORT XFcMatrix3matrixRotationZ (XFcMatrix3 &aMatrix, REAL aAngle)
 Creates a matrix that rotates around Z axis.

XFCIMPORT XFcMatrix3matrixScaling (XFcMatrix3 &aMatrix, REAL aScale)
 Creates a scaling matrix.

XFCIMPORT XFcMatrix3matrixRotateX (XFcMatrix3 &aMatrix, REAL aAngle)
 Rotates a matrix around X axis.

XFCIMPORT XFcMatrix3matrixRotateY (XFcMatrix3 &aMatrix, REAL aAngle)
 Rotates a matrix around Y axis.

XFCIMPORT XFcMatrix3matrixRotateZ (XFcMatrix3 &aMatrix, REAL aAngle)
 Rotates a matrix around Z axis.

XFCIMPORT XFcMatrix3matrixScale (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 XFcMatrix3matrixTranspose (XFcMatrix3 &aMatrix)
 Transposes a matrix.

XFCIMPORT XFcMatrix3matrixInverse (XFcMatrix3 &aMatrix)
 Inverses a matrix.

XFCIMPORT XFcMatrix3matrixInverseAffine (XFcMatrix3 &aMatrix)
 Inverses a matrix. Handles only affine 3D transformation matricies.

XFCIMPORT XFcMatrix3matrixInverseFast (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 XFcMatrix3matrixRotation2D (XFcMatrix3 &aMatrix, REAL aAngle)
 Creates a matrix that rotates around Z axis.

XFCIMPORT XFcMatrix3matrixRotate2D (XFcMatrix3 &aMatrix, REAL aAngle)
 Rotates a matrix around Z axis.

XFCIMPORT XFcMatrix3matrixTranslation2D (XFcMatrix3 &aMatrix, const XFcVector2 &aOffset)
 Creates a translation matrix.

XFCIMPORT XFcMatrix3matrixScaling2D (XFcMatrix3 &aMatrix, REAL aScale)
 Creates a scaling matrix.

XFCIMPORT XFcMatrix3matrixTranslate2D (XFcMatrix3 &aMatrix, const XFcVector2 &aOffset)
 Translates a matrix by offset.

XFCIMPORT XFcMatrix3matrixScale2D (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 XFcMatrix3matrixInverseAffine2D (XFcMatrix3 &aMatrix)
 Inverses a matrix. Handles only 2D affine transformation.

XFCIMPORT XFcMatrix3matrixInverseFast2D (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).


Detailed Description

Static collection of math functions.

Contains quaternion, matrix and vector functions as well as math primitives like sin, cos, etc.


Member Function Documentation

XFCIMPORT XFcFixed XFcMath::abs XFcFixed    aArg [static]
 

Returns the absolute value of the argument.

XFCIMPORT XFcFixed XFcMath::acosFast XFcFixed    aArg [static]
 

Calculates acos of the value in radians, sacrificing accuracy for speed.

XFCIMPORT XFcFixed XFcMath::atan2 XFcFixed    aY,
XFcFixed    aX
[static]
 

Calculates the angle (in radians) of the X-axis and the point (x,y).

XFCIMPORT XFcFixed XFcMath::ceil XFcFixed    aArg [static]
 

Rounds the value up to the next larger integer.

XFCIMPORT XFcFixed XFcMath::cos XFcFixed    aArg [static]
 

Calculates cos of the value in radians.

XFCIMPORT XFcFixed XFcMath::cosFast XFcFixed    value [static]
 

Calculates cos of the value in radians, sacrificing accuracy for speed.

XFCIMPORT XFcFixed XFcMath::floor XFcFixed    aArg [static]
 

Removes any fractional part from the value.

XFCIMPORT void XFcMath::matrixFromQuaternion XFcMatrix3   aMatrix,
XFcQuaternion   aQuat
[static]
 

Creates a matrix from quaternion.

XFCIMPORT void XFcMath::matrixFromQuaternion XFcMatrix4   aMatrix,
XFcQuaternion   aQuat
[static]
 

Creates matrix from a quaternion.

XFCIMPORT XFcMatrix3& XFcMath::matrixIdentity XFcMatrix3   aMatrix [static]
 

Creates an identity matrix.

XFCIMPORT XFcMatrix4& XFcMath::matrixIdentity XFcMatrix4   aMatrix [static]
 

Creates an identity matrix.

XFCIMPORT XFcMatrix3& XFcMath::matrixInverse XFcMatrix3   aMatrix [static]
 

Inverses a matrix.

XFCIMPORT XFcMatrix4& XFcMath::matrixInverse XFcMatrix4   aMatrix [static]
 

Inverses a matrix.

XFCIMPORT XFcMatrix3& XFcMath::matrixInverseAffine XFcMatrix3   aMatrix [static]
 

Inverses a matrix. Handles only affine 3D transformation matricies.

XFCIMPORT XFcMatrix4& XFcMath::matrixInverseAffine XFcMatrix4   aMatrix [static]
 

Inverses a matrix. Handles only affine 3D transformation matricies.

XFCIMPORT XFcMatrix3& XFcMath::matrixInverseAffine2D XFcMatrix3   aMatrix [static]
 

Inverses a matrix. Handles only 2D affine transformation.

XFCIMPORT XFcMatrix3& XFcMath::matrixInverseFast XFcMatrix3   aMatrix [static]
 

Inverses a matrix. Handles only 3D rotation matrix.

XFCIMPORT XFcMatrix4& XFcMath::matrixInverseFast XFcMatrix4   aMatrix [static]
 

Inverses a matrix. Handles only 3D matricies with rotation and translation.

XFCIMPORT XFcMatrix3& XFcMath::matrixInverseFast2D XFcMatrix3   aMatrix [static]
 

Inverses a matrix. Handles only 2D rotation and translation.

XFCIMPORT void XFcMath::matrixLookAt XFcMatrix4   aMatrix,
const XFcVector3   aPos,
const XFcVector3   aAt,
const XFcVector3   aUp
[static]
 

Creates a look-at matrix.

XFCIMPORT void XFcMath::matrixNormalize XFcMatrix3   aMatrix [static]
 

Normalizes a matrix.

XFCIMPORT void XFcMath::matrixNormalize XFcMatrix4   aMatrix [static]
 

Normalizes a matrix.

XFCIMPORT void XFcMath::matrixProject XFcMatrix4   aMatrix,
const XFcVector4   aSrc,
XFcVector4   aDst
[static]
 

Projects a vector by a matrix.

XFCIMPORT XFcMatrix3& XFcMath::matrixRotate2D XFcMatrix3   aMatrix,
REAL    aAngle
[static]
 

Rotates a matrix around Z axis.

XFCIMPORT XFcMatrix3& XFcMath::matrixRotateX XFcMatrix3   aMatrix,
REAL    aAngle
[static]
 

Rotates a matrix around X axis.

XFCIMPORT XFcMatrix4& XFcMath::matrixRotateX XFcMatrix4   aMatrix,
REAL    aAngle
[static]
 

Rotates a matrix around X axis.

XFCIMPORT XFcMatrix3& XFcMath::matrixRotateY XFcMatrix3   aMatrix,
REAL    aAngle
[static]
 

Rotates a matrix around Y axis.

XFCIMPORT XFcMatrix4& XFcMath::matrixRotateY XFcMatrix4   aMatrix,
REAL    aAngle
[static]
 

Rotates a matrix around Y axis.

XFCIMPORT XFcMatrix3& XFcMath::matrixRotateZ XFcMatrix3   aMatrix,
REAL    aAngle
[static]
 

Rotates a matrix around Z axis.

XFCIMPORT XFcMatrix4& XFcMath::matrixRotateZ XFcMatrix4   aMatrix,
REAL    aAngle
[static]
 

Rotates a matrix around Z axis.

XFCIMPORT XFcMatrix3& XFcMath::matrixRotation2D XFcMatrix3   aMatrix,
REAL    aAngle
[static]
 

Creates a matrix that rotates around Z axis.

XFCIMPORT XFcMatrix3& XFcMath::matrixRotationX XFcMatrix3   aMatrix,
REAL    aAngle
[static]
 

Creates a matrix that rotates around X axis.

XFCIMPORT XFcMatrix4& XFcMath::matrixRotationX XFcMatrix4   aMatrix,
REAL    aAngle
[static]
 

Creates a matrix that rotates around X axis.

XFCIMPORT XFcMatrix3& XFcMath::matrixRotationY XFcMatrix3   aMatrix,
REAL    aAngle
[static]
 

Creates a matrix that rotates around Y axis.

XFCIMPORT XFcMatrix4& XFcMath::matrixRotationY XFcMatrix4   aMatrix,
REAL    aAngle
[static]
 

Creates a matrix that rotates around Y axis.

XFCIMPORT XFcMatrix3& XFcMath::matrixRotationZ XFcMatrix3   aMatrix,
REAL    aAngle
[static]
 

Creates a matrix that rotates around Z axis.

XFCIMPORT XFcMatrix4& XFcMath::matrixRotationZ XFcMatrix4   aMatrix,
REAL    aAngle
[static]
 

Creates a matrix that rotates around Z axis.

XFCIMPORT XFcMatrix3& XFcMath::matrixScale XFcMatrix3   aMatrix,
REAL    aScale
[static]
 

Scales a matrix by value.

XFCIMPORT XFcMatrix4& XFcMath::matrixScale XFcMatrix4   aMatrix,
REAL    aScale
[static]
 

Scales a matrix by a value.

XFCIMPORT XFcMatrix3& XFcMath::matrixScale2D XFcMatrix3   aMatrix,
REAL    aScale
[static]
 

Scales a matrix by a value.

XFCIMPORT XFcMatrix3& XFcMath::matrixScaling XFcMatrix3   aMatrix,
REAL    aScale
[static]
 

Creates a scaling matrix.

XFCIMPORT XFcMatrix4& XFcMath::matrixScaling XFcMatrix4   aMatrix,
REAL    aScale
[static]
 

Creates a scaling matrix.

XFCIMPORT XFcMatrix3& XFcMath::matrixScaling2D XFcMatrix3   aMatrix,
REAL    aScale
[static]
 

Creates a scaling matrix.

XFCIMPORT void XFcMath::matrixToProjection XFcMatrix4   aMatrix,
REAL    aHeight,
REAL    aWidth,
REAL    aFov,
REAL    aZNear,
REAL    aZFar
[static]
 

Creates a projection matrix.

XFCIMPORT void XFcMath::matrixToProjectionOffCenter XFcMatrix4   aMatrix,
REAL    aLeft,
REAL    aRight,
REAL    aBottom,
REAL    aTop,
REAL    aNear,
REAL    aFar
[static]
 

Creates an off-center projection matrix. Left, right, bottom and top are in cameraspace coordinates.

XFCIMPORT void XFcMath::matrixToProjectionOffCenter XFcMatrix4   aMatrix,
REAL    aHeight,
REAL    aWidth,
REAL    aFov,
REAL    aZNear,
REAL    aZFar,
REAL    aLeft,
REAL    aRight,
REAL    aTop,
REAL    aBottom
[static]
 

Creates an off-center projection matrix. Left, right, bottom and top are in screen coordinates.

XFCIMPORT void XFcMath::matrixTransform const XFcMatrix3   aMatrix,
const XFcVector3   aSrc,
XFcVector3   aDst
[static]
 

Transforms a vector by matrix.

XFCIMPORT void XFcMath::matrixTransform const XFcMatrix4   aMatrix,
const XFcVector3   aSrc,
XFcVector3   aDst
[static]
 

Transforms a vector by a matrix.

XFCIMPORT void XFcMath::matrixTransform2D const XFcMatrix3   aMatrix,
const XFcVector2   aSrc,
XFcVector2   aDst
[static]
 

Transforms a vector by a matrix.

XFCIMPORT void XFcMath::matrixTransformNormal const XFcMatrix4   aMatrix,
const XFcVector3   aSrc,
XFcVector3   aDst
[static]
 

Transforms a vector by a matrix without translation information (affine transform).

XFCIMPORT XFcMatrix4& XFcMath::matrixTranslate XFcMatrix4   aMatrix,
const XFcVector3   aOffset
[static]
 

Translates a matrix by offset.

XFCIMPORT XFcMatrix3& XFcMath::matrixTranslate2D XFcMatrix3   aMatrix,
const XFcVector2   aOffset
[static]
 

Translates a matrix by offset.

XFCIMPORT XFcMatrix4& XFcMath::matrixTranslation XFcMatrix4   aMatrix,
const XFcVector3   aOffset
[static]
 

Creates a translation matrix.

XFCIMPORT XFcMatrix3& XFcMath::matrixTranslation2D XFcMatrix3   aMatrix,
const XFcVector2   aOffset
[static]
 

Creates a translation matrix.

XFCIMPORT XFcMatrix3& XFcMath::matrixTranspose XFcMatrix3   aMatrix [static]
 

Transposes a matrix.

XFCIMPORT XFcMatrix4& XFcMath::matrixTranspose XFcMatrix4   aMatrix [static]
 

Transposes a matrix.

XFCIMPORT void XFcMath::quaternionFromMatrix XFcQuaternion   aQuat,
XFcMatrix3   aMatrix
[static]
 

Creates a quaternion from a matrix.

XFCIMPORT void XFcMath::quaternionFromMatrix XFcQuaternion   aQuat,
XFcMatrix4   aMatrix
[static]
 

Creates a quaternion from a matrix.

XFCIMPORT XFcQuaternion& XFcMath::quaternionIdentity XFcQuaternion   aQuat [static]
 

Creates an identity quaternion.

XFCIMPORT void XFcMath::quaternionLookAt XFcQuaternion   aQuat,
XFcVector3   aPos,
XFcVector3   aAt,
XFcVector3   aUp
[static]
 

Creates a quaternion from a look-at vector definition.

XFCIMPORT XFcQuaternion& XFcMath::quaternionRotateVector XFcQuaternion   aQuat,
XFcVector3   aVec,
REAL    aAngle
[static]
 

Rotates a quaternion around given vector.

XFCIMPORT XFcQuaternion& XFcMath::quaternionRotateX XFcQuaternion   aQuat,
REAL    aAngle
[static]
 

Rotates a quaternion around X axis.

XFCIMPORT XFcQuaternion& XFcMath::quaternionRotateXYZ XFcQuaternion   aQuat,
REAL    aXAngle,
REAL    aYAngle,
REAL    aZAngle
[static]
 

Rotates a quaternion around X, Y and Z axes.

XFCIMPORT XFcQuaternion& XFcMath::quaternionRotateY XFcQuaternion   aQuat,
REAL    aAngle
[static]
 

Rotates a quaternion around Y axis.

XFCIMPORT XFcQuaternion& XFcMath::quaternionRotateZ XFcQuaternion   aQuat,
REAL    aAngle
[static]
 

Rotates a quaternion around Z axis.

XFCIMPORT XFcQuaternion& XFcMath::quaternionRotationVector XFcQuaternion   aQuat,
XFcVector3   aVector,
REAL    aAngle
[static]
 

Creates a quaternion that rotates around given vector.

XFCIMPORT XFcQuaternion& XFcMath::quaternionRotationX XFcQuaternion   aQuat,
REAL    aAngle
[static]
 

Creates a quaternion that rotates around X axis.

XFCIMPORT XFcQuaternion& XFcMath::quaternionRotationXYZ XFcQuaternion   aQuat,
REAL    aXAngle,
REAL    aYAngle,
REAL    aZAngle
[static]
 

Creates a quaternion that rotates around X, Y and Z axes.

XFCIMPORT XFcQuaternion& XFcMath::quaternionRotationY XFcQuaternion   aQuat,
REAL    aAngle
[static]
 

Creates a quaternion that rotates around Y axis.

XFCIMPORT XFcQuaternion& XFcMath::quaternionRotationZ XFcQuaternion   aQuat,
REAL    aAngle
[static]
 

Creates a quaternion that rotates around Z axis.

XFCIMPORT void XFcMath::quaternionSlerp XFcQuaternion   aFrom,
XFcQuaternion   aTo,
REAL    aPos,
XFcQuaternion   aResult
[static]
 

Interpolates a quaternion using spherical linear interpolation.

XFCIMPORT void XFcMath::quaternionTransform XFcQuaternion   aQuat,
XFcVector3   aSrc,
XFcVector3   aDst
[static]
 

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.

XFCIMPORT XFcFixed XFcMath::sin XFcFixed    aArg [static]
 

Calculates sin of the value in radians.

XFCIMPORT XFcFixed XFcMath::sinFast XFcFixed    value [static]
 

Calculates sin of the value in radians, sacrificing accuracy for speed.

XFCIMPORT XFcFixed XFcMath::sqr XFcFixed    aArg [static]
 

Calculates square of the value.

XFCIMPORT XFcFixed XFcMath::sqrt XFcFixed    aArg [static]
 

Calculates square root of the value.

XFCIMPORT XFcFixed XFcMath::sqrtFast XFcFixed    value [static]
 

Calculates square root of the value, sacrificing accuracy for speed.


   
X-Forge Documentation
Confidential
Copyright © 2002-2003 Fathammer
   
Documentation generated
with doxygen
by Dimitri van Heesch