Edit

Share via


Vector3.TransformNormal Method

Definition

Overloads

TransformNormal(Vector3, Matrix4)
TransformNormal(Vector3, Matrix4, Vector3)

Transform a Normal by the given Matrix

TransformNormal(Vector3, Matrix4)

public static OpenTK.Vector3 TransformNormal (OpenTK.Vector3 norm, OpenTK.Matrix4 mat);
static member TransformNormal : OpenTK.Vector3 * OpenTK.Matrix4 -> OpenTK.Vector3

Parameters

norm
Vector3
mat
Matrix4

Returns

Applies to

TransformNormal(Vector3, Matrix4, Vector3)

Transform a Normal by the given Matrix

public static void TransformNormal (ref OpenTK.Vector3 norm, ref OpenTK.Matrix4 mat, out OpenTK.Vector3 result);
static member TransformNormal :  *  *  -> unit

Parameters

norm
Vector3

The normal to transform

mat
Matrix4

The desired transformation

result
Vector3

The transformed normal

Remarks

This calculates the inverse of the given matrix, use TransformNormalInverse if you already have the inverse to avoid this extra calculation

Applies to