 |
MathUtilsTransformNonAffine Method |
Transform the specified position by the matrix.
This method is different from Vector3.Transform because it also uses the M14, M23, M34 and M44 values of the matrix.
This is required, for example, when using shadow matrix.
Namespace: Ab4d.SharpEngine.UtilitiesAssembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 5.0.1075+bc537c8d217949260b11f66ee86aefa6456ac517
Syntaxpublic static Vector3 TransformNonAffine(
in Vector3 position,
in Matrix4x4 matrix
)
Parameters
- position Vector3
- Vector3
- matrix Matrix4x4
- Matrix4x4
Return Value
Vector3transformed position as Vector3
See Also