Click or drag to resize
Ab4d.SharpEngine logo

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.Utilities
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 4.0.9584+ba1aaa26d4181dd3fa8ed7b6398391d1affa36c8
Syntax
C#
public static Vector3 TransformNonAffine(
	 in Vector3 position,
	 in Matrix4x4 matrix
)

Parameters

position  Vector3
Vector3
matrix  Matrix4x4
Matrix4x4

Return Value

Vector3
transformed position as Vector3
See Also