Edit

Share via


Vector3d.TransformVector Method

Definition

Overloads

TransformVector(Vector3d, Matrix4d)
TransformVector(Vector3d, Matrix4d, Vector3d)

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(Vector3d, Matrix4d)

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

Parameters

vec
Vector3d
mat
Matrix4d

Returns

Applies to

TransformVector(Vector3d, Matrix4d, Vector3d)

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.Vector3d vec, ref OpenTK.Matrix4d mat, out OpenTK.Vector3d result);
static member TransformVector :  *  *  -> unit

Parameters

vec
Vector3d

The vector to transform

mat
Matrix4d

The desired transformation

result
Vector3d

The transformed vector

Applies to