Method MultiplyProjectionMatrix
MultiplyProjectionMatrix(Matrix4x4, Matrix4x4, bool)
Multiplies a matrix with a projection matrix. This function is faster than performing the full matrix multiplication. The operation order is projMatrix * rhs.
Declaration
public static Matrix4x4 MultiplyProjectionMatrix(Matrix4x4 projMatrix, Matrix4x4 rhs, bool orthoCentered)
Parameters
Type | Name | Description |
---|---|---|
Matrix4x4 | projMatrix | The projection matrix to multiply with rhs. |
Matrix4x4 | rhs | A matrix to be multiply to perspective. |
bool | orthoCentered | If true, the projection matrix is a centered ( right+left == top+bottom == 0) orthographic projection, otherwise it is a perspective matrix.. |
Returns
Type | Description |
---|---|
Matrix4x4 | Returns the matrix that is the result of the multiplication. |