Click or drag to resize
AB4D logo

MatrixCamera Methods

The MatrixCamera type exposes the following members.

Methods
 NameDescription
Public methodGetCameraPosition Gets the camera's position. The position is calculating with inverting the view matrix and extracting the values from 4th row. The invert operation can be skipped with calling SetCameraPosition(Vector3) method.
Public methodGetViewProjection Gets a pre-calculated View * Projection matrix.
Public methodGetWorldViewProjection Returns WorldViewProjection matrix. Calculating this matrix is faster inside Camera because here we can access matrixes by reference.
Public methodSetCameraPosition Sets camera's position. This prevents calling invert on view matrix when the GetCameraPosition is called. This method should be called after setting View matrix.
Public methodUpdate Update method updates the camera matrices when needed (when there were any change in the camera properties) or when forceMatrixUpdate is set to true.
Top
See Also