VRageMath.Vector2.Transform - bimbam2103/space_engineers GitHub Wiki
← Index ← Namespace Index ← Vector2
public static Vector2 Transform(Vector2 position, Matrix matrix)Transforms the vector (x, y, 0, 1) by the specified matrix.
public static void Transform(ref Vector2 position, ref Matrix matrix, out Vector2 result)Transforms a Vector2 by the given Matrix.
public static Vector2 Transform(Vector2 value, Quaternion rotation)Transforms a single Vector2, or the vector normal (x, y, 0, 0), by a specified Quaternion rotation.
- Vector2 value
- Quaternion rotation
public static void Transform(ref Vector2 value, ref Quaternion rotation, out Vector2 result)Transforms a Vector2, or the vector normal (x, y, 0, 0), by a specified Quaternion rotation.
- Vector2 value
- Quaternion rotation
- Vector2 result
public static void Transform(Vector2[] sourceArray, ref Matrix matrix, Vector2[] destinationArray)Transforms an array of Vector2s by a specified Matrix.
- Vector2[] sourceArray
- Matrix matrix
- Vector2[] destinationArray
public static void Transform(Vector2[] sourceArray, int sourceIndex, ref Matrix matrix, Vector2[] destinationArray, int destinationIndex, int length)Transforms a specified range in an array of Vector2s by a specified Matrix and places the results in a specified range in a destination array.
- Vector2[] sourceArray
- int sourceIndex
- Matrix matrix
- Vector2[] destinationArray
- int destinationIndex
- int length
public static void Transform(Vector2[] sourceArray, ref Quaternion rotation, Vector2[] destinationArray)Transforms an array of Vector2s by a specified Quaternion.
- Vector2[] sourceArray
- Quaternion rotation
- Vector2[] destinationArray
public static void Transform(Vector2[] sourceArray, int sourceIndex, ref Quaternion rotation, Vector2[] destinationArray, int destinationIndex, int length)Transforms a specified range in an array of Vector2s by a specified Quaternion and places the results in a specified range in a destination array.
- Vector2[] sourceArray
- int sourceIndex
- Quaternion rotation
- Vector2[] destinationArray
- int destinationIndex
- int length