 Main   Class List   Namespace List   Online

Matrix Math [Math]

Functions for working with matrices (MatrixF, AngAxisF, MatrixRotation, MatrixPosition). More...

Functions

TransformF MatrixCreate (VectorF position, AngAxisF orientation)
Create a transform from the given translation and orientation.
TransformF MatrixCreateFromEuler (Point3F angles)
a matrix from the given rotations.
Point3F MatrixMulPoint (TransformF transform, Point3F point)
Multiply the given point by the given transform assuming that w=1.
TransformF MatrixMultiply (TransformF left, TransformF right)
Multiply the two matrices.
VectorF MatrixMulVector (TransformF transform, VectorF vector)
Multiply the vector by the transform assuming that w=0.

Detailed Description

Functions for working with matrices (MatrixF, AngAxisF, MatrixRotation, MatrixPosition).

Function Documentation

 TransformF MatrixCreate ( VectorF position, AngAxisF orientation )

Create a transform from the given translation and orientation.

Parameters:
 position The translation vector for the transform. orientation The axis and rotation that orients the transform.
Returns:
A transform based on the given position and orientation.
 TransformF MatrixCreateFromEuler ( Point3F angles )

a matrix from the given rotations.

Parameters:
 Vector3F X, Y, and Z rotation in *radians*.
Returns:
A transform based on the given orientation.
 Point3F MatrixMulPoint ( TransformF transform, Point3F point )

Multiply the given point by the given transform assuming that w=1.

This function will multiply the given vector such that translation with take effect.

Parameters:
 transform A transform. point A vector.
Returns:
The transformed vector.
 TransformF MatrixMultiply ( TransformF left, TransformF right )

Multiply the two matrices.

Parameters:
 left First transform. right Right transform.
Returns:
Concatenation of the two transforms.
 VectorF MatrixMulVector ( TransformF transform, VectorF vector )

Multiply the vector by the transform assuming that w=0.

This function will multiply the given vector by the given transform such that translation will not affect the vector.

Parameters:
 transform A transform. vector A vector.
Returns:
The transformed vector.