 |
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: 4.1.9680+a1b1e43de1ad9a7e35472c33948d688d7b40ef79
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