Vector3

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

Describes a 3D-vector.

float X

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

float Y

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

float Z

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

readonly Vector3 Zero

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

readonly Vector3 One

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

readonly Vector3 UnitX

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

readonly Vector3 UnitY

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

readonly Vector3 UnitZ

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

readonly Vector3 Up

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

readonly Vector3 Down

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

readonly Vector3 Right

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

readonly Vector3 Left

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

readonly Vector3 Forward

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

readonly Vector3 Backward

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

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

Performs vector addition on and .

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

The result of the vector addition.

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

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

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

The cartesian translation of barycentric coordinates.

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

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

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

The result of CatmullRom interpolation.

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

Clamps the specified value within a range.

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

The clamped value.

void Clamp(ref Vector3 value1, ref Vector3 min, ref Vector3 max, ref Vector3 result)
Parameters:
  • (ref) value1 (Microsoft.Xna.Framework.Vector3) –
  • (ref) min (Microsoft.Xna.Framework.Vector3) –
  • (ref) max (Microsoft.Xna.Framework.Vector3) –
  • (ref) result (Microsoft.Xna.Framework.Vector3) –
Vector3 Cross(Vector3 vector1, Vector3 vector2)

Computes the cross product of two vectors.

Parameters:
  • vector1 (Microsoft.Xna.Framework.Vector3) – The first vector.
  • vector2 (Microsoft.Xna.Framework.Vector3) – The second vector.
Returns:

The cross product of two vectors.

void Cross(ref Vector3 vector1, ref Vector3 vector2, ref Vector3 result)
Parameters:
  • (ref) vector1 (Microsoft.Xna.Framework.Vector3) –
  • (ref) vector2 (Microsoft.Xna.Framework.Vector3) –
  • (ref) result (Microsoft.Xna.Framework.Vector3) –
float Distance(Vector3 value1, Vector3 value2)

Returns the distance between two vectors.

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

The distance between two vectors.

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

Returns the squared distance between two vectors.

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

The squared distance between two vectors.

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

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

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

The result of dividing the vectors.

Vector3 Divide(Vector3 value1, float divider)

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

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

The result of dividing a vector by a scalar.

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

Returns a dot product of two vectors.

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

The dot product of two vectors.

void Dot(ref Vector3 value1, ref Vector3 value2, ref float result)
Parameters:
  • (ref) value1 (Microsoft.Xna.Framework.Vector3) –
  • (ref) value2 (Microsoft.Xna.Framework.Vector3) –
  • (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(Vector3 other)

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

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

true if the instances are equal; false otherwise.

int GetHashCode()

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

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

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

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

The hermite spline interpolation vector.

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

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

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

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

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

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

Parameters:
  • value1 (Microsoft.Xna.Framework.Vector3) – The first vector.
  • value2 (Microsoft.Xna.Framework.Vector3) – 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 Vector3 value1, ref Vector3 value2, float amount, ref Vector3 result)
Parameters:
  • (ref) value1 (Microsoft.Xna.Framework.Vector3) –
  • (ref) value2 (Microsoft.Xna.Framework.Vector3) –
  • amount (float) –
  • (ref) result (Microsoft.Xna.Framework.Vector3) –
Vector3 LerpPrecise(Vector3 value1, Vector3 value2, float amount)

Creates a new T:Microsoft.Xna.Framework.Vector3 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.Vector3.Lerp(Microsoft.Xna.Framework.Vector3,Microsoft.Xna.Framework.Vector3,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.Vector3) – The first vector.
  • value2 (Microsoft.Xna.Framework.Vector3) – 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 Vector3 value1, ref Vector3 value2, float amount, ref Vector3 result)
Parameters:
  • (ref) value1 (Microsoft.Xna.Framework.Vector3) –
  • (ref) value2 (Microsoft.Xna.Framework.Vector3) –
  • amount (float) –
  • (ref) result (Microsoft.Xna.Framework.Vector3) –
Vector3 Max(Vector3 value1, Vector3 value2)

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

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

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

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

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

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

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

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

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

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

The result of the vector multiplication.

Vector3 Multiply(Vector3 value1, float scaleFactor)

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

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

The result of the vector multiplication with a scalar.

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

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

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

The result of the vector inversion.

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

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

Vector3 Normalize(Vector3 value)

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

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

Unit vector.

void Normalize(ref Vector3 value, ref Vector3 result)
Parameters:
  • (ref) value (Microsoft.Xna.Framework.Vector3) –
  • (ref) result (Microsoft.Xna.Framework.Vector3) –
Vector3 Reflect(Vector3 vector, Vector3 normal)

Creates a new T:Microsoft.Xna.Framework.Vector3 that contains reflect vector of the given vector and normal.

Parameters:
  • vector (Microsoft.Xna.Framework.Vector3) – Source T:Microsoft.Xna.Framework.Vector3.
  • normal (Microsoft.Xna.Framework.Vector3) – Reflection normal.
Returns:

Reflected vector.

void Reflect(ref Vector3 vector, ref Vector3 normal, ref Vector3 result)
Parameters:
  • (ref) vector (Microsoft.Xna.Framework.Vector3) –
  • (ref) normal (Microsoft.Xna.Framework.Vector3) –
  • (ref) result (Microsoft.Xna.Framework.Vector3) –
Vector3 SmoothStep(Vector3 value1, Vector3 value2, float amount)

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

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

Cubic interpolation of the specified vectors.

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

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

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

The result of the vector subtraction.

void Subtract(ref Vector3 value1, ref Vector3 value2, ref Vector3 result)
Parameters:
  • (ref) value1 (Microsoft.Xna.Framework.Vector3) –
  • (ref) value2 (Microsoft.Xna.Framework.Vector3) –
  • (ref) result (Microsoft.Xna.Framework.Vector3) –
string ToString()

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

Returns:A T:System.String representation of this T:Microsoft.Xna.Framework.Vector3.
Vector3 Transform(Vector3 position, Matrix matrix)

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

Parameters:
  • position (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.Vector3.

void Transform(ref Vector3 position, ref Matrix matrix, ref Vector3 result)
Parameters:
  • (ref) position (Microsoft.Xna.Framework.Vector3) –
  • (ref) matrix (Microsoft.Xna.Framework.Matrix) –
  • (ref) result (Microsoft.Xna.Framework.Vector3) –
Vector3 Transform(Vector3 value, Quaternion rotation)

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

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.Vector3.

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

Creates a new T:Microsoft.Xna.Framework.Vector3 that contains a transformation of the specified normal by the specified T:Microsoft.Xna.Framework.Matrix.

Parameters:
  • normal (Microsoft.Xna.Framework.Vector3) – Source T:Microsoft.Xna.Framework.Vector3 which represents a normal vector.
  • matrix (Microsoft.Xna.Framework.Matrix) – The transformation T:Microsoft.Xna.Framework.Matrix.
Returns:

Transformed normal.

void TransformNormal(ref Vector3 normal, ref Matrix matrix, ref Vector3 result)
Parameters:
  • (ref) normal (Microsoft.Xna.Framework.Vector3) –
  • (ref) matrix (Microsoft.Xna.Framework.Matrix) –
  • (ref) result (Microsoft.Xna.Framework.Vector3) –
void TransformNormal(Microsoft.Xna.Framework.Vector3[] sourceArray, int sourceIndex, ref Matrix matrix, Microsoft.Xna.Framework.Vector3[] destinationArray, int destinationIndex, int length)
Parameters:
  • sourceArray (Microsoft.Xna.Framework.Vector3[]) –
  • sourceIndex (int) –
  • (ref) matrix (Microsoft.Xna.Framework.Matrix) –
  • destinationArray (Microsoft.Xna.Framework.Vector3[]) –
  • destinationIndex (int) –
  • length (int) –
void TransformNormal(Microsoft.Xna.Framework.Vector3[] sourceArray, ref Matrix matrix, Microsoft.Xna.Framework.Vector3[] destinationArray)
Parameters:
  • sourceArray (Microsoft.Xna.Framework.Vector3[]) –
  • (ref) matrix (Microsoft.Xna.Framework.Matrix) –
  • destinationArray (Microsoft.Xna.Framework.Vector3[]) –
bool op_Equality(Vector3 value1, Vector3 value2)

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

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

true if the instances are equal; false otherwise.

bool op_Inequality(Vector3 value1, Vector3 value2)

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

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

true if the instances are not equal; false otherwise.

Vector3 op_Addition(Vector3 value1, Vector3 value2)

Adds two vectors.

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

Sum of the vectors.

Vector3 op_UnaryNegation(Vector3 value)

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

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

Result of the inversion.

Vector3 op_Subtraction(Vector3 value1, Vector3 value2)

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

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

Result of the vector subtraction.

Vector3 op_Multiply(Vector3 value1, Vector3 value2)

Multiplies the components of two vectors by each other.

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

Result of the vector multiplication.

Vector3 op_Multiply(Vector3 value, float scaleFactor)

Multiplies the components of vector by a scalar.

Parameters:
  • value (Microsoft.Xna.Framework.Vector3) – Source T:Microsoft.Xna.Framework.Vector3 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.

Vector3 op_Multiply(float scaleFactor, Vector3 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.Vector3) – Source T:Microsoft.Xna.Framework.Vector3 on the right of the mul sign.
Returns:

Result of the vector multiplication with a scalar.

Vector3 op_Division(Vector3 value1, Vector3 value2)

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

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

The result of dividing the vectors.

Vector3 op_Division(Vector3 value1, float divider)

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

Parameters:
  • value1 (Microsoft.Xna.Framework.Vector3) – Source T:Microsoft.Xna.Framework.Vector3 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.