跳转到主要内容

Matrix4x4

This class represents row major 4x4 homogeneous matrices.

Public Functions

Matrix4x4 &concatenateXRotation(float radians)
Concatenate x coordinate rotation.
Matrix4x4 &concatenateXScale(float distance)
Concatenate x coordinate scale.
Matrix4x4 &concatenateXTranslation(float distance)
Concatenate x coordinate translation.
Matrix4x4 &concatenateYRotation(float radians)
Concatenate y coordinate rotation.
Matrix4x4 &concatenateYScale(float distance)
Concatenate y coordinate scale.
Matrix4x4 &concatenateYTranslation(float distance)
Concatenate y coordinate translation.
Matrix4x4 &concatenateZRotation(float radians)
Concatenate z coordinate rotation.
Matrix4x4 &concatenateZScale(float distance)
Concatenate z coordinate scale.
Matrix4x4 &concatenateZTranslation(float distance)
Concatenate z coordinate translation.
FORCE_INLINE_FUNCTION floatgetElement(int row, int column) const
Gets an element.
Matrix4x4()
Initializes a new instance of the Point4 class.
FORCE_INLINE_FUNCTION Matrix4x4setElement(int row, int column, float value)
Sets an element.
voidsetViewDistance(float distance)
Sets view distance.

Protected Attributes

floatelements
The elements[4][4].

Public Functions Documentation

concatenateXRotation

Matrix4x4 & concatenateXRotation(floatradians)

Concatenate x coordinate rotation.

Parameters:
radiansThe radians.
Returns:

A matrix_4x4&

concatenateXScale

Matrix4x4 & concatenateXScale(floatdistance)

Concatenate x coordinate scale.

Parameters:
distanceThe distance.
Returns:

A matrix_4x4&

concatenateXTranslation

Matrix4x4 & concatenateXTranslation(floatdistance)

Concatenate x coordinate translation.

Parameters:
distanceThe distance.
Returns:

A matrix_4x4&

concatenateYRotation

Matrix4x4 & concatenateYRotation(floatradians)

Concatenate y coordinate rotation.

Parameters:
radiansThe radians.
Returns:

A matrix_4x4&

concatenateYScale

Matrix4x4 & concatenateYScale(floatdistance)

Concatenate y coordinate scale.

Parameters:
distanceThe distance.
Returns:

A matrix_4x4&

concatenateYTranslation

Matrix4x4 & concatenateYTranslation(floatdistance)

Concatenate y coordinate translation.

Parameters:
distanceThe distance.
Returns:

A matrix_4x4&

concatenateZRotation

Matrix4x4 & concatenateZRotation(floatradians)

Concatenate z coordinate rotation.

Parameters:
radiansThe radians.
Returns:

A matrix_4x4&

concatenateZScale

Matrix4x4 & concatenateZScale(floatdistance)

Concatenate z coordinate scale.

Parameters:
distanceThe distance.
Returns:

A matrix_4x4&

concatenateZTranslation

Matrix4x4 & concatenateZTranslation(floatdistance)

Concatenate z coordinate translation.

Parameters:
distanceThe distance.
Returns:

A matrix_4x4&

getElement

FORCE_INLINE_FUNCTION float getElement(introw ,const
intcolumnconst
)const

Gets an element.

Parameters:
rowThe row (0-3).
columnThe column (0-3).
Returns:

The element.

Matrix4x4

Initializes a new instance of the Point4 class.

setElement

FORCE_INLINE_FUNCTION Matrix4x4 setElement(introw ,
intcolumn ,
floatvalue
)

Sets an element.

Parameters:
rowThe row.
columnThe column.
valueThe value.
Returns:

A matrix_4x4&

setViewDistance

void setViewDistance(floatdistance)

Sets view distance.

Parameters:
distanceThe distance.

Protected Attributes Documentation

elements

float elements

The elements[4][4].