Vector4

struct Vector4 : System.ValueType, System.IEquatable<Vector4>

Describes a 4D-vector.

float X

The x coordinate of this T:Microsoft.Xna.Framework.Vector4.

float Y

The y coordinate of this T:Microsoft.Xna.Framework.Vector4.

float Z

The z coordinate of this T:Microsoft.Xna.Framework.Vector4.

float W

The w coordinate of this T:Microsoft.Xna.Framework.Vector4.

readonly Vector4 Zero

Returns a T:Microsoft.Xna.Framework.Vector4 with components 0, 0, 0, 0.

readonly Vector4 One

Returns a T:Microsoft.Xna.Framework.Vector4 with components 1, 1, 1, 1.

readonly Vector4 UnitX

Returns a T:Microsoft.Xna.Framework.Vector4 with components 1, 0, 0, 0.

readonly Vector4 UnitY

Returns a T:Microsoft.Xna.Framework.Vector4 with components 0, 1, 0, 0.

readonly Vector4 UnitZ

Returns a T:Microsoft.Xna.Framework.Vector4 with components 0, 0, 1, 0.

readonly Vector4 UnitW

Returns a T:Microsoft.Xna.Framework.Vector4 with components 0, 0, 0, 1.

string get_DebugDisplayString()
Vector4 Add(Vector4 value1, Vector4 value2)

Performs vector addition on and .

Parameters:
  • value1 (Microsoft.Xna.Framework.Vector4) – The first vector to add.
  • value2 (Microsoft.Xna.Framework.Vector4) – The second vector to add.
Returns:

The result of the vector addition.

void Add(ref Vector4 value1, ref Vector4 value2, ref Vector4 result)
Parameters:
  • (ref) value1 (Microsoft.Xna.Framework.Vector4) –
  • (ref) value2 (Microsoft.Xna.Framework.Vector4) –
  • (ref) result (Microsoft.Xna.Framework.Vector4) –
Vector4 Barycentric(Vector4 value1, Vector4 value2, Vector4 value3, float amount1, float amount2)

Creates a new T:Microsoft.Xna.Framework.Vector4 that contains the cartesian coordinates of a vector specified in barycentric coordinates and relative to 4d-triangle.

Parameters:
  • value1 (Microsoft.Xna.Framework.Vector4) – The first vector of 4d-triangle.
  • value2 (Microsoft.Xna.Framework.Vector4) – The second vector of 4d-triangle.
  • value3 (Microsoft.Xna.Framework.Vector4) – The third vector of 4d-triangle.
  • amount1 (float) – Barycentric scalar b2 which represents a weighting factor towards second vector of 4d-triangle.
  • amount2 (float) – Barycentric scalar b3 which represents a weighting factor towards third vector of 4d-triangle.
Returns:

The cartesian translation of barycentric coordinates.

void Barycentric(ref Vector4 value1, ref Vector4 value2, ref Vector4 value3, float amount1, float amount2, ref Vector4 result)
Parameters:
  • (ref) value1 (Microsoft.Xna.Framework.Vector4) –
  • (ref) value2 (Microsoft.Xna.Framework.Vector4) –
  • (ref) value3 (Microsoft.Xna.Framework.Vector4) –
  • amount1 (float) –
  • amount2 (float) –
  • (ref) result (Microsoft.Xna.Framework.Vector4) –
Vector4 CatmullRom(Vector4 value1, Vector4 value2, Vector4 value3, Vector4 value4, float amount)

Creates a new T:Microsoft.Xna.Framework.Vector4 that contains CatmullRom interpolation of the specified vectors.

Parameters:
  • value1 (Microsoft.Xna.Framework.Vector4) – The first vector in interpolation.
  • value2 (Microsoft.Xna.Framework.Vector4) – The second vector in interpolation.
  • value3 (Microsoft.Xna.Framework.Vector4) – The third vector in interpolation.
  • value4 (Microsoft.Xna.Framework.Vector4) – The fourth vector in interpolation.
  • amount (float) – Weighting factor.
Returns:

The result of CatmullRom interpolation.

void CatmullRom(ref Vector4 value1, ref Vector4 value2, ref Vector4 value3, ref Vector4 value4, float amount, ref Vector4 result)
Parameters:
  • (ref) value1 (Microsoft.Xna.Framework.Vector4) –
  • (ref) value2 (Microsoft.Xna.Framework.Vector4) –
  • (ref) value3 (Microsoft.Xna.Framework.Vector4) –
  • (ref) value4 (Microsoft.Xna.Framework.Vector4) –
  • amount (float) –
  • (ref) result (Microsoft.Xna.Framework.Vector4) –
Vector4 Clamp(Vector4 value1, Vector4 min, Vector4 max)

Clamps the specified value within a range.

Parameters:
  • value1 (Microsoft.Xna.Framework.Vector4) – The value to clamp.
  • min (Microsoft.Xna.Framework.Vector4) – The min value.
  • max (Microsoft.Xna.Framework.Vector4) – The max value.
Returns:

The clamped value.

void Clamp(ref Vector4 value1, ref Vector4 min, ref Vector4 max, ref Vector4 result)
Parameters:
  • (ref) value1 (Microsoft.Xna.Framework.Vector4) –
  • (ref) min (Microsoft.Xna.Framework.Vector4) –
  • (ref) max (Microsoft.Xna.Framework.Vector4) –
  • (ref) result (Microsoft.Xna.Framework.Vector4) –
float Distance(Vector4 value1, Vector4 value2)

Returns the distance between two vectors.

Parameters:
  • value1 (Microsoft.Xna.Framework.Vector4) – The first vector.
  • value2 (Microsoft.Xna.Framework.Vector4) – The second vector.
Returns:

The distance between two vectors.

void Distance(ref Vector4 value1, ref Vector4 value2, ref float result)
Parameters:
  • (ref) value1 (Microsoft.Xna.Framework.Vector4) –
  • (ref) value2 (Microsoft.Xna.Framework.Vector4) –
  • (ref) result (float) –
float DistanceSquared(Vector4 value1, Vector4 value2)

Returns the squared distance between two vectors.

Parameters:
  • value1 (Microsoft.Xna.Framework.Vector4) – The first vector.
  • value2 (Microsoft.Xna.Framework.Vector4) – The second vector.
Returns:

The squared distance between two vectors.

void DistanceSquared(ref Vector4 value1, ref Vector4 value2, ref float result)
Parameters:
  • (ref) value1 (Microsoft.Xna.Framework.Vector4) –
  • (ref) value2 (Microsoft.Xna.Framework.Vector4) –
  • (ref) result (float) –
Vector4 Divide(Vector4 value1, Vector4 value2)

Divides the components of a T:Microsoft.Xna.Framework.Vector4 by the components of another T:Microsoft.Xna.Framework.Vector4.

Parameters:
  • value1 (Microsoft.Xna.Framework.Vector4) – Source T:Microsoft.Xna.Framework.Vector4.
  • value2 (Microsoft.Xna.Framework.Vector4) – Divisor T:Microsoft.Xna.Framework.Vector4.
Returns:

The result of dividing the vectors.

Vector4 Divide(Vector4 value1, float divider)

Divides the components of a T:Microsoft.Xna.Framework.Vector4 by a scalar.

Parameters:
  • value1 (Microsoft.Xna.Framework.Vector4) – Source T:Microsoft.Xna.Framework.Vector4.
  • divider (float) – Divisor scalar.
Returns:

The result of dividing a vector by a scalar.

void Divide(ref Vector4 value1, float divider, ref Vector4 result)
Parameters:
  • (ref) value1 (Microsoft.Xna.Framework.Vector4) –
  • divider (float) –
  • (ref) result (Microsoft.Xna.Framework.Vector4) –
void Divide(ref Vector4 value1, ref Vector4 value2, ref Vector4 result)
Parameters:
  • (ref) value1 (Microsoft.Xna.Framework.Vector4) –
  • (ref) value2 (Microsoft.Xna.Framework.Vector4) –
  • (ref) result (Microsoft.Xna.Framework.Vector4) –
float Dot(Vector4 value1, Vector4 value2)

Returns a dot product of two vectors.

Parameters:
  • value1 (Microsoft.Xna.Framework.Vector4) – The first vector.
  • value2 (Microsoft.Xna.Framework.Vector4) – The second vector.
Returns:

The dot product of two vectors.

void Dot(ref Vector4 value1, ref Vector4 value2, ref float result)
Parameters:
  • (ref) value1 (Microsoft.Xna.Framework.Vector4) –
  • (ref) value2 (Microsoft.Xna.Framework.Vector4) –
  • (ref) result (float) –
bool Equals(System.Object obj)

Compares whether current instance is equal to specified T:System.Object.

Parameters:
  • obj (System.Object) – The T:System.Object to compare.
Returns:

true if the instances are equal; false otherwise.

bool Equals(Vector4 other)

Compares whether current instance is equal to specified T:Microsoft.Xna.Framework.Vector4.

Parameters:
  • other (Microsoft.Xna.Framework.Vector4) – The T:Microsoft.Xna.Framework.Vector4 to compare.
Returns:

true if the instances are equal; false otherwise.

int GetHashCode()

Gets the hash code of this T:Microsoft.Xna.Framework.Vector4.

Returns:Hash code of this T:Microsoft.Xna.Framework.Vector4.
Vector4 Hermite(Vector4 value1, Vector4 tangent1, Vector4 value2, Vector4 tangent2, float amount)

Creates a new T:Microsoft.Xna.Framework.Vector4 that contains hermite spline interpolation.

Parameters:
  • value1 (Microsoft.Xna.Framework.Vector4) – The first position vector.
  • tangent1 (Microsoft.Xna.Framework.Vector4) – The first tangent vector.
  • value2 (Microsoft.Xna.Framework.Vector4) – The second position vector.
  • tangent2 (Microsoft.Xna.Framework.Vector4) – The second tangent vector.
  • amount (float) – Weighting factor.
Returns:

The hermite spline interpolation vector.

void Hermite(ref Vector4 value1, ref Vector4 tangent1, ref Vector4 value2, ref Vector4 tangent2, float amount, ref Vector4 result)
Parameters:
  • (ref) value1 (Microsoft.Xna.Framework.Vector4) –
  • (ref) tangent1 (Microsoft.Xna.Framework.Vector4) –
  • (ref) value2 (Microsoft.Xna.Framework.Vector4) –
  • (ref) tangent2 (Microsoft.Xna.Framework.Vector4) –
  • amount (float) –
  • (ref) result (Microsoft.Xna.Framework.Vector4) –
float Length()

Returns the length of this T:Microsoft.Xna.Framework.Vector4.

Returns:The length of this T:Microsoft.Xna.Framework.Vector4.
float LengthSquared()

Returns the squared length of this T:Microsoft.Xna.Framework.Vector4.

Returns:The squared length of this T:Microsoft.Xna.Framework.Vector4.
Vector4 Lerp(Vector4 value1, Vector4 value2, float amount)

Creates a new T:Microsoft.Xna.Framework.Vector4 that contains linear interpolation of the specified vectors.

Parameters:
  • value1 (Microsoft.Xna.Framework.Vector4) – The first vector.
  • value2 (Microsoft.Xna.Framework.Vector4) – The second vector.
  • amount (float) – Weighting value(between 0.0 and 1.0).
Returns:

The result of linear interpolation of the specified vectors.

void Lerp(ref Vector4 value1, ref Vector4 value2, float amount, ref Vector4 result)
Parameters:
  • (ref) value1 (Microsoft.Xna.Framework.Vector4) –
  • (ref) value2 (Microsoft.Xna.Framework.Vector4) –
  • amount (float) –
  • (ref) result (Microsoft.Xna.Framework.Vector4) –
Vector4 LerpPrecise(Vector4 value1, Vector4 value2, float amount)

Creates a new T:Microsoft.Xna.Framework.Vector4 that contains linear interpolation of the specified vectors. Uses M:Microsoft.Xna.Framework.MathHelper.LerpPrecise(System.Single,System.Single,System.Single) on MathHelper for the interpolation. Less efficient but more precise compared to M:Microsoft.Xna.Framework.Vector4.Lerp(Microsoft.Xna.Framework.Vector4,Microsoft.Xna.Framework.Vector4,System.Single). See remarks section of M:Microsoft.Xna.Framework.MathHelper.LerpPrecise(System.Single,System.Single,System.Single) on MathHelper for more info.

Parameters:
  • value1 (Microsoft.Xna.Framework.Vector4) – The first vector.
  • value2 (Microsoft.Xna.Framework.Vector4) – The second vector.
  • amount (float) – Weighting value(between 0.0 and 1.0).
Returns:

The result of linear interpolation of the specified vectors.

void LerpPrecise(ref Vector4 value1, ref Vector4 value2, float amount, ref Vector4 result)
Parameters:
  • (ref) value1 (Microsoft.Xna.Framework.Vector4) –
  • (ref) value2 (Microsoft.Xna.Framework.Vector4) –
  • amount (float) –
  • (ref) result (Microsoft.Xna.Framework.Vector4) –
Vector4 Max(Vector4 value1, Vector4 value2)

Creates a new T:Microsoft.Xna.Framework.Vector4 that contains a maximal values from the two vectors.

Parameters:
  • value1 (Microsoft.Xna.Framework.Vector4) – The first vector.
  • value2 (Microsoft.Xna.Framework.Vector4) – The second vector.
Returns:

The T:Microsoft.Xna.Framework.Vector4 with maximal values from the two vectors.

void Max(ref Vector4 value1, ref Vector4 value2, ref Vector4 result)
Parameters:
  • (ref) value1 (Microsoft.Xna.Framework.Vector4) –
  • (ref) value2 (Microsoft.Xna.Framework.Vector4) –
  • (ref) result (Microsoft.Xna.Framework.Vector4) –
Vector4 Min(Vector4 value1, Vector4 value2)

Creates a new T:Microsoft.Xna.Framework.Vector4 that contains a minimal values from the two vectors.

Parameters:
  • value1 (Microsoft.Xna.Framework.Vector4) – The first vector.
  • value2 (Microsoft.Xna.Framework.Vector4) – The second vector.
Returns:

The T:Microsoft.Xna.Framework.Vector4 with minimal values from the two vectors.

void Min(ref Vector4 value1, ref Vector4 value2, ref Vector4 result)
Parameters:
  • (ref) value1 (Microsoft.Xna.Framework.Vector4) –
  • (ref) value2 (Microsoft.Xna.Framework.Vector4) –
  • (ref) result (Microsoft.Xna.Framework.Vector4) –
Vector4 Multiply(Vector4 value1, Vector4 value2)

Creates a new T:Microsoft.Xna.Framework.Vector4 that contains a multiplication of two vectors.

Parameters:
  • value1 (Microsoft.Xna.Framework.Vector4) – Source T:Microsoft.Xna.Framework.Vector4.
  • value2 (Microsoft.Xna.Framework.Vector4) – Source T:Microsoft.Xna.Framework.Vector4.
Returns:

The result of the vector multiplication.

Vector4 Multiply(Vector4 value1, float scaleFactor)

Creates a new T:Microsoft.Xna.Framework.Vector4 that contains a multiplication of T:Microsoft.Xna.Framework.Vector4 and a scalar.

Parameters:
  • value1 (Microsoft.Xna.Framework.Vector4) – Source T:Microsoft.Xna.Framework.Vector4.
  • scaleFactor (float) – Scalar value.
Returns:

The result of the vector multiplication with a scalar.

void Multiply(ref Vector4 value1, float scaleFactor, ref Vector4 result)
Parameters:
  • (ref) value1 (Microsoft.Xna.Framework.Vector4) –
  • scaleFactor (float) –
  • (ref) result (Microsoft.Xna.Framework.Vector4) –
void Multiply(ref Vector4 value1, ref Vector4 value2, ref Vector4 result)
Parameters:
  • (ref) value1 (Microsoft.Xna.Framework.Vector4) –
  • (ref) value2 (Microsoft.Xna.Framework.Vector4) –
  • (ref) result (Microsoft.Xna.Framework.Vector4) –
Vector4 Negate(Vector4 value)

Creates a new T:Microsoft.Xna.Framework.Vector4 that contains the specified vector inversion.

Parameters:
  • value (Microsoft.Xna.Framework.Vector4) – Source T:Microsoft.Xna.Framework.Vector4.
Returns:

The result of the vector inversion.

void Negate(ref Vector4 value, ref Vector4 result)
Parameters:
  • (ref) value (Microsoft.Xna.Framework.Vector4) –
  • (ref) result (Microsoft.Xna.Framework.Vector4) –
void Normalize()

Turns this T:Microsoft.Xna.Framework.Vector4 to a unit vector with the same direction.

Vector4 Normalize(Vector4 value)

Creates a new T:Microsoft.Xna.Framework.Vector4 that contains a normalized values from another vector.

Parameters:
  • value (Microsoft.Xna.Framework.Vector4) – Source T:Microsoft.Xna.Framework.Vector4.
Returns:

Unit vector.

void Normalize(ref Vector4 value, ref Vector4 result)
Parameters:
  • (ref) value (Microsoft.Xna.Framework.Vector4) –
  • (ref) result (Microsoft.Xna.Framework.Vector4) –
Vector4 SmoothStep(Vector4 value1, Vector4 value2, float amount)

Creates a new T:Microsoft.Xna.Framework.Vector4 that contains cubic interpolation of the specified vectors.

Parameters:
  • value1 (Microsoft.Xna.Framework.Vector4) – Source T:Microsoft.Xna.Framework.Vector4.
  • value2 (Microsoft.Xna.Framework.Vector4) – Source T:Microsoft.Xna.Framework.Vector4.
  • amount (float) – Weighting value.
Returns:

Cubic interpolation of the specified vectors.

void SmoothStep(ref Vector4 value1, ref Vector4 value2, float amount, ref Vector4 result)
Parameters:
  • (ref) value1 (Microsoft.Xna.Framework.Vector4) –
  • (ref) value2 (Microsoft.Xna.Framework.Vector4) –
  • amount (float) –
  • (ref) result (Microsoft.Xna.Framework.Vector4) –
Vector4 Subtract(Vector4 value1, Vector4 value2)

Creates a new T:Microsoft.Xna.Framework.Vector4 that contains subtraction of on T:Microsoft.Xna.Framework.Vector4 from a another.

Parameters:
  • value1 (Microsoft.Xna.Framework.Vector4) – Source T:Microsoft.Xna.Framework.Vector4.
  • value2 (Microsoft.Xna.Framework.Vector4) – Source T:Microsoft.Xna.Framework.Vector4.
Returns:

The result of the vector subtraction.

void Subtract(ref Vector4 value1, ref Vector4 value2, ref Vector4 result)
Parameters:
  • (ref) value1 (Microsoft.Xna.Framework.Vector4) –
  • (ref) value2 (Microsoft.Xna.Framework.Vector4) –
  • (ref) result (Microsoft.Xna.Framework.Vector4) –
Vector4 Transform(Vector2 value, Matrix matrix)

Creates a new T:Microsoft.Xna.Framework.Vector4 that contains a transformation of 2d-vector by the specified T:Microsoft.Xna.Framework.Matrix.

Parameters:
  • value (Microsoft.Xna.Framework.Vector2) – Source T:Microsoft.Xna.Framework.Vector2.
  • matrix (Microsoft.Xna.Framework.Matrix) – The transformation T:Microsoft.Xna.Framework.Matrix.
Returns:

Transformed T:Microsoft.Xna.Framework.Vector4.

Vector4 Transform(Vector2 value, Quaternion rotation)

Creates a new T:Microsoft.Xna.Framework.Vector4 that contains a transformation of 2d-vector by the specified T:Microsoft.Xna.Framework.Quaternion.

Parameters:
  • value (Microsoft.Xna.Framework.Vector2) – Source T:Microsoft.Xna.Framework.Vector2.
  • rotation (Microsoft.Xna.Framework.Quaternion) – The T:Microsoft.Xna.Framework.Quaternion which contains rotation transformation.
Returns:

Transformed T:Microsoft.Xna.Framework.Vector4.

Vector4 Transform(Vector3 value, Matrix matrix)

Creates a new T:Microsoft.Xna.Framework.Vector4 that contains a transformation of 3d-vector by the specified T:Microsoft.Xna.Framework.Matrix.

Parameters:
  • value (Microsoft.Xna.Framework.Vector3) – Source T:Microsoft.Xna.Framework.Vector3.
  • matrix (Microsoft.Xna.Framework.Matrix) – The transformation T:Microsoft.Xna.Framework.Matrix.
Returns:

Transformed T:Microsoft.Xna.Framework.Vector4.

Vector4 Transform(Vector3 value, Quaternion rotation)

Creates a new T:Microsoft.Xna.Framework.Vector4 that contains a transformation of 3d-vector by the specified T:Microsoft.Xna.Framework.Quaternion.

Parameters:
  • value (Microsoft.Xna.Framework.Vector3) – Source T:Microsoft.Xna.Framework.Vector3.
  • rotation (Microsoft.Xna.Framework.Quaternion) – The T:Microsoft.Xna.Framework.Quaternion which contains rotation transformation.
Returns:

Transformed T:Microsoft.Xna.Framework.Vector4.

Vector4 Transform(Vector4 value, Matrix matrix)

Creates a new T:Microsoft.Xna.Framework.Vector4 that contains a transformation of 4d-vector by the specified T:Microsoft.Xna.Framework.Matrix.

Parameters:
  • value (Microsoft.Xna.Framework.Vector4) – Source T:Microsoft.Xna.Framework.Vector4.
  • matrix (Microsoft.Xna.Framework.Matrix) – The transformation T:Microsoft.Xna.Framework.Matrix.
Returns:

Transformed T:Microsoft.Xna.Framework.Vector4.

Vector4 Transform(Vector4 value, Quaternion rotation)

Creates a new T:Microsoft.Xna.Framework.Vector4 that contains a transformation of 4d-vector by the specified T:Microsoft.Xna.Framework.Quaternion.

Parameters:
  • value (Microsoft.Xna.Framework.Vector4) – Source T:Microsoft.Xna.Framework.Vector4.
  • rotation (Microsoft.Xna.Framework.Quaternion) – The T:Microsoft.Xna.Framework.Quaternion which contains rotation transformation.
Returns:

Transformed T:Microsoft.Xna.Framework.Vector4.

void Transform(ref Vector2 value, ref Matrix matrix, ref Vector4 result)
Parameters:
  • (ref) value (Microsoft.Xna.Framework.Vector2) –
  • (ref) matrix (Microsoft.Xna.Framework.Matrix) –
  • (ref) result (Microsoft.Xna.Framework.Vector4) –
void Transform(ref Vector2 value, ref Quaternion rotation, ref Vector4 result)
Parameters:
  • (ref) value (Microsoft.Xna.Framework.Vector2) –
  • (ref) rotation (Microsoft.Xna.Framework.Quaternion) –
  • (ref) result (Microsoft.Xna.Framework.Vector4) –
void Transform(ref Vector3 value, ref Matrix matrix, ref Vector4 result)
Parameters:
  • (ref) value (Microsoft.Xna.Framework.Vector3) –
  • (ref) matrix (Microsoft.Xna.Framework.Matrix) –
  • (ref) result (Microsoft.Xna.Framework.Vector4) –
void Transform(ref Vector3 value, ref Quaternion rotation, ref Vector4 result)
Parameters:
  • (ref) value (Microsoft.Xna.Framework.Vector3) –
  • (ref) rotation (Microsoft.Xna.Framework.Quaternion) –
  • (ref) result (Microsoft.Xna.Framework.Vector4) –
void Transform(ref Vector4 value, ref Matrix matrix, ref Vector4 result)
Parameters:
  • (ref) value (Microsoft.Xna.Framework.Vector4) –
  • (ref) matrix (Microsoft.Xna.Framework.Matrix) –
  • (ref) result (Microsoft.Xna.Framework.Vector4) –
void Transform(ref Vector4 value, ref Quaternion rotation, ref Vector4 result)
Parameters:
  • (ref) value (Microsoft.Xna.Framework.Vector4) –
  • (ref) rotation (Microsoft.Xna.Framework.Quaternion) –
  • (ref) result (Microsoft.Xna.Framework.Vector4) –
void Transform(Microsoft.Xna.Framework.Vector4[] sourceArray, int sourceIndex, ref Matrix matrix, Microsoft.Xna.Framework.Vector4[] destinationArray, int destinationIndex, int length)
Parameters:
  • sourceArray (Microsoft.Xna.Framework.Vector4[]) –
  • sourceIndex (int) –
  • (ref) matrix (Microsoft.Xna.Framework.Matrix) –
  • destinationArray (Microsoft.Xna.Framework.Vector4[]) –
  • destinationIndex (int) –
  • length (int) –
void Transform(Microsoft.Xna.Framework.Vector4[] sourceArray, int sourceIndex, ref Quaternion rotation, Microsoft.Xna.Framework.Vector4[] destinationArray, int destinationIndex, int length)
Parameters:
  • sourceArray (Microsoft.Xna.Framework.Vector4[]) –
  • sourceIndex (int) –
  • (ref) rotation (Microsoft.Xna.Framework.Quaternion) –
  • destinationArray (Microsoft.Xna.Framework.Vector4[]) –
  • destinationIndex (int) –
  • length (int) –
void Transform(Microsoft.Xna.Framework.Vector4[] sourceArray, ref Matrix matrix, Microsoft.Xna.Framework.Vector4[] destinationArray)
Parameters:
  • sourceArray (Microsoft.Xna.Framework.Vector4[]) –
  • (ref) matrix (Microsoft.Xna.Framework.Matrix) –
  • destinationArray (Microsoft.Xna.Framework.Vector4[]) –
void Transform(Microsoft.Xna.Framework.Vector4[] sourceArray, ref Quaternion rotation, Microsoft.Xna.Framework.Vector4[] destinationArray)
Parameters:
  • sourceArray (Microsoft.Xna.Framework.Vector4[]) –
  • (ref) rotation (Microsoft.Xna.Framework.Quaternion) –
  • destinationArray (Microsoft.Xna.Framework.Vector4[]) –
string ToString()

Returns a T:System.String representation of this T:Microsoft.Xna.Framework.Vector4 in the format: {X:[F:Microsoft.Xna.Framework.Vector4.X] Y:[F:Microsoft.Xna.Framework.Vector4.Y] Z:[F:Microsoft.Xna.Framework.Vector4.Z] W:[F:Microsoft.Xna.Framework.Vector4.W]}

Returns:A T:System.String representation of this T:Microsoft.Xna.Framework.Vector4.
Vector4 op_UnaryNegation(Vector4 value)

Inverts values in the specified T:Microsoft.Xna.Framework.Vector4.

Parameters:
  • value (Microsoft.Xna.Framework.Vector4) – Source T:Microsoft.Xna.Framework.Vector4 on the right of the sub sign.
Returns:

Result of the inversion.

bool op_Equality(Vector4 value1, Vector4 value2)

Compares whether two T:Microsoft.Xna.Framework.Vector4 instances are equal.

Parameters:
  • value1 (Microsoft.Xna.Framework.Vector4) – T:Microsoft.Xna.Framework.Vector4 instance on the left of the equal sign.
  • value2 (Microsoft.Xna.Framework.Vector4) – T:Microsoft.Xna.Framework.Vector4 instance on the right of the equal sign.
Returns:

true if the instances are equal; false otherwise.

bool op_Inequality(Vector4 value1, Vector4 value2)

Compares whether two T:Microsoft.Xna.Framework.Vector4 instances are not equal.

Parameters:
  • value1 (Microsoft.Xna.Framework.Vector4) – T:Microsoft.Xna.Framework.Vector4 instance on the left of the not equal sign.
  • value2 (Microsoft.Xna.Framework.Vector4) – T:Microsoft.Xna.Framework.Vector4 instance on the right of the not equal sign.
Returns:

true if the instances are not equal; false otherwise.

Vector4 op_Addition(Vector4 value1, Vector4 value2)

Adds two vectors.

Parameters:
  • value1 (Microsoft.Xna.Framework.Vector4) – Source T:Microsoft.Xna.Framework.Vector4 on the left of the add sign.
  • value2 (Microsoft.Xna.Framework.Vector4) – Source T:Microsoft.Xna.Framework.Vector4 on the right of the add sign.
Returns:

Sum of the vectors.

Vector4 op_Subtraction(Vector4 value1, Vector4 value2)

Subtracts a T:Microsoft.Xna.Framework.Vector4 from a T:Microsoft.Xna.Framework.Vector4.

Parameters:
  • value1 (Microsoft.Xna.Framework.Vector4) – Source T:Microsoft.Xna.Framework.Vector4 on the left of the sub sign.
  • value2 (Microsoft.Xna.Framework.Vector4) – Source T:Microsoft.Xna.Framework.Vector4 on the right of the sub sign.
Returns:

Result of the vector subtraction.

Vector4 op_Multiply(Vector4 value1, Vector4 value2)

Multiplies the components of two vectors by each other.

Parameters:
  • value1 (Microsoft.Xna.Framework.Vector4) – Source T:Microsoft.Xna.Framework.Vector4 on the left of the mul sign.
  • value2 (Microsoft.Xna.Framework.Vector4) – Source T:Microsoft.Xna.Framework.Vector4 on the right of the mul sign.
Returns:

Result of the vector multiplication.

Vector4 op_Multiply(Vector4 value, float scaleFactor)

Multiplies the components of vector by a scalar.

Parameters:
  • value (Microsoft.Xna.Framework.Vector4) – Source T:Microsoft.Xna.Framework.Vector4 on the left of the mul sign.
  • scaleFactor (float) – Scalar value on the right of the mul sign.
Returns:

Result of the vector multiplication with a scalar.

Vector4 op_Multiply(float scaleFactor, Vector4 value)

Multiplies the components of vector by a scalar.

Parameters:
  • scaleFactor (float) – Scalar value on the left of the mul sign.
  • value (Microsoft.Xna.Framework.Vector4) – Source T:Microsoft.Xna.Framework.Vector4 on the right of the mul sign.
Returns:

Result of the vector multiplication with a scalar.

Vector4 op_Division(Vector4 value1, Vector4 value2)

Divides the components of a T:Microsoft.Xna.Framework.Vector4 by the components of another T:Microsoft.Xna.Framework.Vector4.

Parameters:
  • value1 (Microsoft.Xna.Framework.Vector4) – Source T:Microsoft.Xna.Framework.Vector4 on the left of the div sign.
  • value2 (Microsoft.Xna.Framework.Vector4) – Divisor T:Microsoft.Xna.Framework.Vector4 on the right of the div sign.
Returns:

The result of dividing the vectors.

Vector4 op_Division(Vector4 value1, float divider)

Divides the components of a T:Microsoft.Xna.Framework.Vector4 by a scalar.

Parameters:
  • value1 (Microsoft.Xna.Framework.Vector4) – Source T:Microsoft.Xna.Framework.Vector4 on the left of the div sign.
  • divider (float) – Divisor scalar on the right of the div sign.
Returns:

The result of dividing a vector by a scalar.