Microsoft.Xna.Framework
Class Vector4

java.lang.Object
  extended by System.ValueType
      extended by Microsoft.Xna.Framework.Vector4
All Implemented Interfaces:
IEquatable<Vector4>

public final class Vector4
extends ValueType
implements IEquatable<Vector4>

Defines a vector with four components.

Author:
Halofreak1990

Field Summary
static Vector4 One
          Returns a Vector4 with all of its components set to one.
static Vector4 UnitW
          Returns the Vector4 (0, 0, 0, 1).
static Vector4 UnitX
          Returns the Vector4 (1, 0, 0, 0).
static Vector4 UnitY
          Returns the Vector4 (0, 1, 0, 0).
static Vector4 UnitZ
          Returns the Vector4 (0, 0, 1, 0).
 float W
          Gets or sets the w-component of the vector.
 float X
          Gets or sets the x-component of the vector.
 float Y
          Gets or sets the y-component of the vector.
 float Z
          Gets or sets the z-component of the vector.
static Vector4 Zero
          Returns a Vector4 with all of its components set to zero.
 
Constructor Summary
Vector4()
          Creates a new instance of Vector4.
Vector4(float value)
          Creates a new instance of Vector4.
Vector4(float x, float y, float z, float w)
          Creates a new instance of Vector4.
Vector4(Vector2 value, float z, float w)
          Creates a new instance of Vector4.
Vector4(Vector3 value, float w)
          Creates a new instance of Vector4.
 
Method Summary
 void Add(Vector4 other)
          Adds the specified vector to the current vector.
static Vector4 Add(Vector4 value1, Vector4 value2)
          Adds two vectors.
static void Add(Vector4 value1, Vector4 value2, Vector4 result)
          Adds two vectors.
static Vector4 Barycentric(Vector4 value1, Vector4 value2, Vector4 value3, float amount1, float amount2)
          Returns a Vector4 containing the 4D Cartesian coordinates of a point specified in barycentric (areal) coordinates relative to a 4D triangle.
static void Barycentric(Vector4 value1, Vector4 value2, Vector4 value3, float amount1, float amount2, Vector4 result)
          Returns a Vector4 containing the 4D Cartesian coordinates of a point specified in barycentric (areal) coordinates relative to a 4D triangle.
static Vector4 CatmullRom(Vector4 value1, Vector4 value2, Vector4 value3, Vector4 value4, float amount)
          Performs a Catmull-Rom interpolation using the specified positions.
static void CatmullRom(Vector4 value1, Vector4 value2, Vector4 value3, Vector4 value4, float amount, Vector4 result)
          Performs a Catmull-Rom interpolation using the specified positions.
static Vector4 Clamp(Vector4 value1, Vector4 min, Vector4 max)
          Restricts a value to be within a specified range.
static void Clamp(Vector4 value1, Vector4 min, Vector4 max, Vector4 result)
          Restricts a value to be within a specified range.
static float Distance(Vector4 value1, Vector4 value2)
          Calculates the distance between two vectors.
static void Distance(Vector4 value1, Vector4 value2, float result)
          Calculates the distance between two vectors.
static float DistanceSquared(Vector4 value1, Vector4 value2)
          Calculates the distance between two vectors squared.
static void DistanceSquared(Vector4 value1, Vector4 value2, float result)
          Calculates the distance between two vectors squared.
 void Divide(float divider)
          Divides the current vector by a scalar value.
 void Divide(Vector4 other)
          Divides the components of the current vector by the components of another vector.
static Vector4 Divide(Vector4 value1, float divider)
          Divides a vector by a scalar value.
static void Divide(Vector4 value1, float divider, Vector4 result)
          Divides a vector by a scalar value.
static Vector4 Divide(Vector4 value1, Vector4 value2)
          Divides the components of a vector by the components of another vector.
static void Divide(Vector4 value1, Vector4 value2, Vector4 result)
          Divides the components of a vector by the components of another vector.
static float Dot(Vector4 vector1, Vector4 vector2)
          Calculates the dot product of two vectors.
static void Dot(Vector4 vector1, Vector4 vector2, float result)
          Calculates the dot product of two vectors.
 boolean equals(java.lang.Object obj)
          Returns a value that indicates whether the current instance is equal to a specified object.
 boolean Equals(Vector4 other)
          Determines whether the specified Object is equal to the Vector4.
 int hashCode()
          Gets the hash code of this object.
static Vector4 Hermite(Vector4 value1, Vector4 tangent1, Vector4 value2, Vector4 tangent2, float amount)
          Performs a Hermite spline interpolation.
static void Hermite(Vector4 value1, Vector4 tangent1, Vector4 value2, Vector4 tangent2, float amount, Vector4 result)
          Performs a Hermite spline interpolation.
 float Length()
          Calculates the length of the vector.
 float LengthSquared()
          Calculates the length of the vector squared.
static Vector4 Lerp(Vector4 value1, Vector4 value2, float amount)
          Performs a linear interpolation between two vectors.
static void Lerp(Vector4 value1, Vector4 value2, float amount, Vector4 result)
          Performs a linear interpolation between two vectors.
static Vector4 Max(Vector4 value1, Vector4 value2)
          Returns a vector that contains the highest value from each matching pair of components.
static void Max(Vector4 value1, Vector4 value2, Vector4 result)
          Returns a vector that contains the highest value from each matching pair of components.
static Vector4 Min(Vector4 value1, Vector4 value2)
          Returns a vector that contains the lowest value from each matching pair of components.
static void Min(Vector4 value1, Vector4 value2, Vector4 result)
          Returns a vector that contains the lowest value from each matching pair of components.
 void Multiply(float scaleFactor)
          Multiplies the current vector by a scalar.
 void Multiply(Vector4 other)
          Multiplies the components of the current vector by the components of another vector.
static Vector4 Multiply(Vector4 value1, float scaleFactor)
          Multiplies a vector by a scalar.
static void Multiply(Vector4 value1, float scaleFactor, Vector4 result)
          Multiplies a vector by a scalar.
static Vector4 Multiply(Vector4 value1, Vector4 value2)
          Multiplies the components of two vectors by each other.
static void Multiply(Vector4 value1, Vector4 value2, Vector4 result)
          Multiplies the components of two vectors by each other.
 void Negate()
          Returns the current vector pointing in the opposite direction.
static Vector4 Negate(Vector4 value)
          Returns a vector pointing in the opposite direction.
static void Negate(Vector4 value, Vector4 result)
          Returns a vector pointing in the opposite direction.
 void Normalize()
          Turns the current vector into a unit vector.
static Vector4 Normalize(Vector4 vector)
          Creates a unit vector from the specified vector.
static void Normalize(Vector4 vector, Vector4 result)
          Returns a normalized version of the specified vector.
static Vector4 SmoothStep(Vector4 value1, Vector4 value2, float amount)
          Interpolates between two values using a cubic equation.
static void SmoothStep(Vector4 value1, Vector4 value2, float amount, Vector4 result)
          Interpolates between two values using a cubic equation.
 void Subtract(Vector4 other)
          Subtracts a vector from the current vector.
static Vector4 Subtract(Vector4 value1, Vector4 value2)
          Subtracts a vector from a vector.
static void Subtract(Vector4 value1, Vector4 value2, Vector4 result)
          Subtracts a vector from a vector.
 java.lang.String ToString()
          Retrieves a string representation of the current object.
static Vector4 Transform(Vector2 position, Matrix matrix)
          Transforms a Vector2 by the given Matrix.
static void Transform(Vector2 position, Matrix matrix, Vector4 result)
          Transforms a Vector2 by the given Matrix.
static Vector4 Transform(Vector2 value, Quaternion rotation)
          Transforms a Vector2 by a specified Quaternion into a Vector4.
static void Transform(Vector2 value, Quaternion rotation, Vector4 result)
          Transforms a Vector2 by a specified Quaternion into a Vector4.
static Vector4 Transform(Vector3 position, Matrix matrix)
          Transforms a Vector3 by the given Matrix.
static void Transform(Vector3 position, Matrix matrix, Vector4 result)
          Transforms a Vector3 by the given Matrix.
static Vector4 Transform(Vector3 value, Quaternion rotation)
          Transforms a Vector3 by a specified Quaternion into a Vector4.
static void Transform(Vector3 value, Quaternion rotation, Vector4 result)
          Transforms a Vector3 by a specified Quaternion into a Vector4.
static void Transform(Vector4[] sourceArray, int sourceIndex, Matrix matrix, Vector4[] destinationArray, int destinationIndex, int length)
          Transforms a specified range in an array of Vector4s by a specified Matrix into a specified range in a destination array.
static void Transform(Vector4[] sourceArray, int sourceIndex, Quaternion rotation, Vector4[] destinationArray, int destinationIndex, int length)
          Transforms a specified range in an array of Vector4s by a specified Quaternion into a specified range in a destination array.
static void Transform(Vector4[] sourceArray, Matrix matrix, Vector4[] destinationArray)
          Transforms an array of Vector4s by a specified Matrix.
static void Transform(Vector4[] sourceArray, Quaternion rotation, Vector4[] destinationArray)
          Transforms an array of Vector4s by a specified Quaternion.
static Vector4 Transform(Vector4 vector, Matrix matrix)
          Transforms a Vector4 by the specified Matrix.
static void Transform(Vector4 vector, Matrix matrix, Vector4 result)
          Transforms a Vector4 by the given Matrix.
static Vector4 Transform(Vector4 value, Quaternion rotation)
          Transforms a Vector4 by a specified Quaternion.
static void Transform(Vector4 value, Quaternion rotation, Vector4 result)
          Transforms a Vector4 by a specified Quaternion.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

One

public static final Vector4 One
Returns a Vector4 with all of its components set to one.


UnitW

public static final Vector4 UnitW
Returns the Vector4 (0, 0, 0, 1).


UnitX

public static final Vector4 UnitX
Returns the Vector4 (1, 0, 0, 0).


UnitY

public static final Vector4 UnitY
Returns the Vector4 (0, 1, 0, 0).


UnitZ

public static final Vector4 UnitZ
Returns the Vector4 (0, 0, 1, 0).


W

public float W
Gets or sets the w-component of the vector.


X

public float X
Gets or sets the x-component of the vector.


Y

public float Y
Gets or sets the y-component of the vector.


Z

public float Z
Gets or sets the z-component of the vector.


Zero

public static final Vector4 Zero
Returns a Vector4 with all of its components set to zero.

Constructor Detail

Vector4

public Vector4(float value)
Creates a new instance of Vector4.

Parameters:
value - Value to initialize each component to.

Vector4

public Vector4(Vector3 value,
               float w)
Creates a new instance of Vector4.

Parameters:
value - A vector containing the values to initialize x, y, and z components with.
w - Initial value for the w-component of the vector.

Vector4

public Vector4(Vector2 value,
               float z,
               float w)
Creates a new instance of Vector4.

Parameters:
value - A vector containing the values to initialize x and y components with.
z - Initial value for the z-component of the vector.
w - Initial value for the w-component of the vector.

Vector4

public Vector4(float x,
               float y,
               float z,
               float w)
Creates a new instance of Vector4.

Parameters:
x - Initial value for the x-component of the vector.
y - Initial value for the y-component of the vector.
z - Initial value for the z-component of the vector.
w - Initial value for the w-component of the vector.

Vector4

public Vector4()
Creates a new instance of Vector4.

Method Detail

Add

public void Add(Vector4 other)
Adds the specified vector to the current vector.

Parameters:
other - Source vector.

Add

public static Vector4 Add(Vector4 value1,
                          Vector4 value2)
Adds two vectors.

Parameters:
value1 - Source vector.
value2 - Source vector.

Add

public static void Add(Vector4 value1,
                       Vector4 value2,
                       Vector4 result)
Adds two vectors.

Parameters:
value1 - Source vector.
value2 - Source vector.
result - [OutAttribute] Sum of the source vectors.

Barycentric

public static Vector4 Barycentric(Vector4 value1,
                                  Vector4 value2,
                                  Vector4 value3,
                                  float amount1,
                                  float amount2)
Returns a Vector4 containing the 4D Cartesian coordinates of a point specified in barycentric (areal) coordinates relative to a 4D triangle.

Parameters:
value1 - A Vector4 containing the 4D Cartesian coordinates of vertex 1 of the triangle.
value2 - A Vector4 containing the 4D Cartesian coordinates of vertex 2 of the triangle.
value3 - A Vector4 containing the 4D Cartesian coordinates of vertex 4 of the triangle.
amount1 - Barycentric coordinate b2, which expresses the weighting factor toward vertex 2 (specified in value2).
amount2 - Barycentric coordinate b3, which expresses the weighting factor toward vertex 3 (specified in value3).

Barycentric

public static void Barycentric(Vector4 value1,
                               Vector4 value2,
                               Vector4 value3,
                               float amount1,
                               float amount2,
                               Vector4 result)
Returns a Vector4 containing the 4D Cartesian coordinates of a point specified in barycentric (areal) coordinates relative to a 4D triangle.

Parameters:
value1 - A Vector4 containing the 4D Cartesian coordinates of vertex 1 of the triangle.
value2 - A Vector4 containing the 4D Cartesian coordinates of vertex 2 of the triangle.
value3 - A Vector4 containing the 4D Cartesian coordinates of vertex 4 of the triangle.
amount1 - Barycentric coordinate b2, which expresses the weighting factor toward vertex 2 (specified in value2).
amount2 - Barycentric coordinate b3, which expresses the weighting factor toward vertex 3 (specified in value3).
result - [OutAttribute] The 4D Cartesian coordinates of the specified point are placed in this Vector4 on exit.

CatmullRom

public static Vector4 CatmullRom(Vector4 value1,
                                 Vector4 value2,
                                 Vector4 value3,
                                 Vector4 value4,
                                 float amount)
Performs a Catmull-Rom interpolation using the specified positions.

Parameters:
value1 - The first position in the interpolation.
value2 - The second position in the interpolation.
value3 - The third position in the interpolation.
value4 - The fourth position in the interpolation.
amount - Weighting factor.

CatmullRom

public static void CatmullRom(Vector4 value1,
                              Vector4 value2,
                              Vector4 value3,
                              Vector4 value4,
                              float amount,
                              Vector4 result)
Performs a Catmull-Rom interpolation using the specified positions.

Parameters:
value1 - The first position in the interpolation.
value2 - The second position in the interpolation.
value3 - The third position in the interpolation.
value4 - The fourth position in the interpolation.
amount - Weighting factor.
result - [OutAttribute] A vector that is the result of the Catmull-Rom interpolation.

Clamp

public static Vector4 Clamp(Vector4 value1,
                            Vector4 min,
                            Vector4 max)
Restricts a value to be within a specified range.

Parameters:
value1 - The value to clamp.
min - The minimum value.
max - The maximum value.

Clamp

public static void Clamp(Vector4 value1,
                         Vector4 min,
                         Vector4 max,
                         Vector4 result)
Restricts a value to be within a specified range.

Parameters:
value1 - The value to clamp.
min - The minimum value.
max - The maximum value.
result - [OutAttribute] The clamped value.

Distance

public static float Distance(Vector4 value1,
                             Vector4 value2)
Calculates the distance between two vectors.

Parameters:
value1 - Source vector.
value2 - Source vector.

Distance

public static void Distance(Vector4 value1,
                            Vector4 value2,
                            float result)
Calculates the distance between two vectors.

Parameters:
value1 - Source vector.
value2 - Source vector.
result - [OutAttribute] The distance between the vectors.

DistanceSquared

public static float DistanceSquared(Vector4 value1,
                                    Vector4 value2)
Calculates the distance between two vectors squared.

Parameters:
value1 - Source vector.
value2 - Source vector.

DistanceSquared

public static void DistanceSquared(Vector4 value1,
                                   Vector4 value2,
                                   float result)
Calculates the distance between two vectors squared.

Parameters:
value1 - Source vector.
value2 - Source vector.
result - [OutAttribute] The distance between the two vectors squared.

Divide

public void Divide(Vector4 other)
Divides the components of the current vector by the components of another vector.

Parameters:
other - Divisor vector.

Divide

public static Vector4 Divide(Vector4 value1,
                             Vector4 value2)
Divides the components of a vector by the components of another vector.

Parameters:
value1 - Source vector.
value2 - Divisor vector.

Divide

public void Divide(float divider)
Divides the current vector by a scalar value.

Parameters:
divider - The divisor.

Divide

public static Vector4 Divide(Vector4 value1,
                             float divider)
Divides a vector by a scalar value.

Parameters:
value1 - Source vector.
divider - The divisor.

Divide

public static void Divide(Vector4 value1,
                          Vector4 value2,
                          Vector4 result)
Divides the components of a vector by the components of another vector.

Parameters:
value1 - Source vector.
value2 - Divisor vector.
result - [OutAttribute] The result of the division.

Divide

public static void Divide(Vector4 value1,
                          float divider,
                          Vector4 result)
Divides a vector by a scalar value.

Parameters:
value1 - Source vector.
divider - The divisor.
result - [OutAttribute] The result of the division.

Dot

public static float Dot(Vector4 vector1,
                        Vector4 vector2)
Calculates the dot product of two vectors.

Parameters:
vector1 - Source vector.
vector2 - Source vector.

Dot

public static void Dot(Vector4 vector1,
                       Vector4 vector2,
                       float result)
Calculates the dot product of two vectors.

Parameters:
vector1 - Source vector.
vector2 - Source vector.
result - [OutAttribute] The dot product of the two vectors.

equals

public boolean equals(java.lang.Object obj)
Returns a value that indicates whether the current instance is equal to a specified object.

Overrides:
equals in class java.lang.Object
Parameters:
obj - Object with which to make the comparison.

Equals

public boolean Equals(Vector4 other)
Determines whether the specified Object is equal to the Vector4.

Specified by:
Equals in interface IEquatable<Vector4>
Parameters:
other - The Vector4 to compare with the current Vector4.
Returns:
true if the current object is equal to the other parameter; otherwise, false.

hashCode

public int hashCode()
Gets the hash code of this object.

Overrides:
hashCode in class java.lang.Object

Hermite

public static Vector4 Hermite(Vector4 value1,
                              Vector4 tangent1,
                              Vector4 value2,
                              Vector4 tangent2,
                              float amount)
Performs a Hermite spline interpolation.

Parameters:
value1 - Source position vector.
tangent1 - Source tangent vector.
value2 - Source position vector.
tangent2 - Source tangent vector.
amount - Weighting factor.

Hermite

public static void Hermite(Vector4 value1,
                           Vector4 tangent1,
                           Vector4 value2,
                           Vector4 tangent2,
                           float amount,
                           Vector4 result)
Performs a Hermite spline interpolation.

Parameters:
value1 - Source position vector.
tangent1 - Source tangent vector.
value2 - Source position vector.
tangent2 - Source tangent vector.
amount - Weighting factor.
result - [OutAttribute] The result of the Hermite spline interpolation.

Length

public float Length()
Calculates the length of the vector.


LengthSquared

public float LengthSquared()
Calculates the length of the vector squared.


Lerp

public static Vector4 Lerp(Vector4 value1,
                           Vector4 value2,
                           float amount)
Performs a linear interpolation between two vectors.

Parameters:
value1 - Source vector.
value2 - Source vector.
amount - Value between 0 and 1 indicating the weight of value2.

Lerp

public static void Lerp(Vector4 value1,
                        Vector4 value2,
                        float amount,
                        Vector4 result)
Performs a linear interpolation between two vectors.

Parameters:
value1 - Source vector.
value2 - Source vector.
amount - Value between 0 and 1 indicating the weight of value2.
result - [OutAttribute] The result of the interpolation.

Max

public static Vector4 Max(Vector4 value1,
                          Vector4 value2)
Returns a vector that contains the highest value from each matching pair of components.

Parameters:
value1 - Source vector.
value2 - Source vector.

Max

public static void Max(Vector4 value1,
                       Vector4 value2,
                       Vector4 result)
Returns a vector that contains the highest value from each matching pair of components.

Parameters:
value1 - Source vector.
value2 - Source vector.
result - [OutAttribute] The maximized vector.

Min

public static Vector4 Min(Vector4 value1,
                          Vector4 value2)
Returns a vector that contains the lowest value from each matching pair of components.

Parameters:
value1 - Source vector.
value2 - Source vector.

Min

public static void Min(Vector4 value1,
                       Vector4 value2,
                       Vector4 result)
Returns a vector that contains the lowest value from each matching pair of components.

Parameters:
value1 - Source vector.
value2 - Source vector.
result - [OutAttribute] The minimized vector.

Multiply

public void Multiply(Vector4 other)
Multiplies the components of the current vector by the components of another vector.

Parameters:
other - Source vector.

Multiply

public static Vector4 Multiply(Vector4 value1,
                               Vector4 value2)
Multiplies the components of two vectors by each other.

Parameters:
value1 - Source vector.
value2 - Source vector.

Multiply

public void Multiply(float scaleFactor)
Multiplies the current vector by a scalar.

Parameters:
scaleFactor - Scalar value.

Multiply

public static Vector4 Multiply(Vector4 value1,
                               float scaleFactor)
Multiplies a vector by a scalar.

Parameters:
value1 - Source vector.
scaleFactor - Scalar value.

Multiply

public static void Multiply(Vector4 value1,
                            Vector4 value2,
                            Vector4 result)
Multiplies the components of two vectors by each other.

Parameters:
value1 - Source vector.
value2 - Source vector.
result - [OutAttribute] The result of the multiplication.

Multiply

public static void Multiply(Vector4 value1,
                            float scaleFactor,
                            Vector4 result)
Multiplies a vector by a scalar.

Parameters:
value1 - Source vector.
scaleFactor - Scalar value.
result - [OutAttribute] The result of the multiplication.

Negate

public void Negate()
Returns the current vector pointing in the opposite direction.


Negate

public static Vector4 Negate(Vector4 value)
Returns a vector pointing in the opposite direction.

Parameters:
value - Source vector.

Negate

public static void Negate(Vector4 value,
                          Vector4 result)
Returns a vector pointing in the opposite direction.

Parameters:
value - Source vector.
result - [OutAttribute] Vector pointing in the opposite direction.

Normalize

public void Normalize()
Turns the current vector into a unit vector.


Normalize

public static Vector4 Normalize(Vector4 vector)
Creates a unit vector from the specified vector.

Parameters:
vector - Source vector.

Normalize

public static void Normalize(Vector4 vector,
                             Vector4 result)
Returns a normalized version of the specified vector.

Parameters:
vector - Source vector.
result - [OutAttribute] The normalized vector.

SmoothStep

public static Vector4 SmoothStep(Vector4 value1,
                                 Vector4 value2,
                                 float amount)
Interpolates between two values using a cubic equation.

Parameters:
value1 - Source value.
value2 - Source value.
amount - Weighting value.

SmoothStep

public static void SmoothStep(Vector4 value1,
                              Vector4 value2,
                              float amount,
                              Vector4 result)
Interpolates between two values using a cubic equation.

Parameters:
value1 - Source value.
value2 - Source value.
amount - Weighting value.
result - [OutAttribute] The interpolated value.

Subtract

public void Subtract(Vector4 other)
Subtracts a vector from the current vector.

Parameters:
other -

Subtract

public static Vector4 Subtract(Vector4 value1,
                               Vector4 value2)
Subtracts a vector from a vector.

Parameters:
value1 - Source vector.
value2 - Source vector.

Subtract

public static void Subtract(Vector4 value1,
                            Vector4 value2,
                            Vector4 result)
Subtracts a vector from a vector.

Parameters:
value1 - Source vector.
value2 - Source vector.
result - [OutAttribute] The result of the subtraction.

ToString

public java.lang.String ToString()
Retrieves a string representation of the current object.


Transform

public static Vector4 Transform(Vector2 position,
                                Matrix matrix)
Transforms a Vector2 by the given Matrix.

Parameters:
position - The source Vector2.
matrix - The transformation Matrix.

Transform

public static Vector4 Transform(Vector2 value,
                                Quaternion rotation)
Transforms a Vector2 by a specified Quaternion into a Vector4.

Parameters:
value - The Vector2 to transform.
rotation - The Quaternion rotation to apply.

Transform

public static Vector4 Transform(Vector3 position,
                                Matrix matrix)
Transforms a Vector3 by the given Matrix.

Parameters:
position - The source Vector3.
matrix - The transformation Matrix.

Transform

public static Vector4 Transform(Vector3 value,
                                Quaternion rotation)
Transforms a Vector3 by a specified Quaternion into a Vector4.

Parameters:
value - The Vector3 to transform.
rotation - The Quaternion rotation to apply.

Transform

public static Vector4 Transform(Vector4 vector,
                                Matrix matrix)
Transforms a Vector4 by the specified Matrix.

Parameters:
vector - The source Vector4.
matrix - The transformation Matrix.

Transform

public static Vector4 Transform(Vector4 value,
                                Quaternion rotation)
Transforms a Vector4 by a specified Quaternion.

Parameters:
value - The Vector4 to transform.
rotation - The Quaternion rotation to apply.

Transform

public static void Transform(Vector4[] sourceArray,
                             Quaternion rotation,
                             Vector4[] destinationArray)
Transforms an array of Vector4s by a specified Quaternion.

Parameters:
sourceArray - The array of Vector4s to transform.
rotation - The Quaternion rotation to apply.
destinationArray - The existing destination array into which the transformed Vector4s are written.

Transform

public static void Transform(Vector2 position,
                             Matrix matrix,
                             Vector4 result)
Transforms a Vector2 by the given Matrix.

Parameters:
position - The source Vector2.
matrix - The transformation Matrix.
result - [OutAttribute] The Vector4 resulting from the transformation.

Transform

public static void Transform(Vector2 value,
                             Quaternion rotation,
                             Vector4 result)
Transforms a Vector2 by a specified Quaternion into a Vector4.

Parameters:
value - The Vector2 to transform.
rotation - The Quaternion rotation to apply.
result - [OutAttribute] The Vector4 resulting from the transformation.

Transform

public static void Transform(Vector4[] sourceArray,
                             Matrix matrix,
                             Vector4[] destinationArray)
Transforms an array of Vector4s by a specified Matrix.

Parameters:
sourceArray - The array of Vector4s to transform.
matrix - The transform Matrix to apply.
destinationArray - The existing destination array into which the transformed Vector4s are written.

Transform

public static void Transform(Vector3 position,
                             Matrix matrix,
                             Vector4 result)
Transforms a Vector3 by the given Matrix.

Parameters:
position - The source Vector3.
matrix - The transformation Matrix.
result - [OutAttribute] The Vector4 resulting from the transformation.

Transform

public static void Transform(Vector3 value,
                             Quaternion rotation,
                             Vector4 result)
Transforms a Vector3 by a specified Quaternion into a Vector4.

Parameters:
value - The Vector3 to transform.
rotation - The Quaternion rotation to apply.
result - [OutAttribute] The Vector4 resulting from the transformation.

Transform

public static void Transform(Vector4 vector,
                             Matrix matrix,
                             Vector4 result)
Transforms a Vector4 by the given Matrix.

Parameters:
vector - The source Vector4.
matrix - The transformation Matrix.
result - [OutAttribute] The Vector4 resulting from the transformation.

Transform

public static void Transform(Vector4 value,
                             Quaternion rotation,
                             Vector4 result)
Transforms a Vector4 by a specified Quaternion.

Parameters:
value - The Vector4 to transform.
rotation - The Quaternion rotation to apply.
result - [OutAttribute] The Vector4 resulting from the transformation.

Transform

public static void Transform(Vector4[] sourceArray,
                             int sourceIndex,
                             Matrix matrix,
                             Vector4[] destinationArray,
                             int destinationIndex,
                             int length)
Transforms a specified range in an array of Vector4s by a specified Matrix into a specified range in a destination array.

Parameters:
sourceArray - The array of Vector4s containing the range to transform.
sourceIndex - The index in the source array of the first Vector4 to transform.
matrix - The transform Matrix to apply.
destinationArray - The existing destination array of Vector4s into which to write the results.
destinationIndex - The index in the destination array of the first result Vector4 to write.
length - The number of Vector4s to transform.

Transform

public static void Transform(Vector4[] sourceArray,
                             int sourceIndex,
                             Quaternion rotation,
                             Vector4[] destinationArray,
                             int destinationIndex,
                             int length)
Transforms a specified range in an array of Vector4s by a specified Quaternion into a specified range in a destination array.

Parameters:
sourceArray - The array of Vector4s containing the range to transform.
sourceIndex - The index in the source array of the first Vector4 to transform.
rotation - The Quaternion rotation to apply.
destinationArray - The existing destination array of Vector4s into which to write the results.
destinationIndex - The index in the destination array of the first result Vector4 to write.
length - The number of Vector4s to transform.