Modifier

Partager via


Vector3.TransformVector Method

Definition

Overloads

TransformVector(Vector3, Matrix4)
TransformVector(Vector3, Matrix4, Vector3)

Transform a direction vector by the given Matrix Assumes the matrix has a bottom row of (0,0,0,1), that is the translation part is ignored.

TransformVector(Vector3, Matrix4)

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

Parameters

vec
Vector3
mat
Matrix4

Returns

Applies to

TransformVector(Vector3, Matrix4, Vector3)

Transform a direction vector by the given Matrix Assumes the matrix has a bottom row of (0,0,0,1), that is the translation part is ignored.

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

Parameters

vec
Vector3

The vector to transform

mat
Matrix4

The desired transformation

result
Vector3

The transformed vector

Applies to