Vector3.TransformVector Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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)
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