Matrices

More...

Functions

TransformF
MatrixCreate(VectorF position, AngAxisF orientation)

Create a transform from the given translation and orientation.

TransformF
MatrixCreateFromEuler(Point3F angles)

@Create 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

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.

return:

A transform based on the given position and orientation.

MatrixCreateFromEuler(Point3F angles)

@Create a matrix from the given rotations.

Parameters:

Vector3F

X, Y, and Z rotation in radians.

return:

A transform based on the given orientation.

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.

return:

The transformed vector.

MatrixMultiply(TransformF left, TransformF right)

Multiply the two matrices.

Parameters:

left

First transform.

right

Right transform.

return:

Concatenation of the two transforms.

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.

return:

The transformed vector.