Method MatrixTimesTranslation
MatrixTimesTranslation(ref Matrix4x4, Vector3)
This function provides the equivalent of multiplying matrix parameter inOutMatrix with a translation matrix defined by the parameter translation. The order of the equivalent multiplication is inOutMatrix * translation.
Declaration
public static void MatrixTimesTranslation(ref Matrix4x4 inOutMatrix, Vector3 translation)
Parameters
Type | Name | Description |
---|---|---|
Matrix4x4 | inOutMatrix | Matrix to multiply with translation. |
Vector3 | translation | Translation component to multiply to the matrix. |