|
Shift
|
Describes a 4D-vector. More...
Public Member Functions | |
| Vector4 (float x, float y, float z, float w) | |
| Constructs a 3d vector with X, Y, Z and W from four values. More... | |
| Vector4 (Vector2 value, float z, float w) | |
| Constructs a 3d vector with X and Z from Vector2 and Z and W from the scalars. More... | |
| Vector4 (Vector3 value, float w) | |
| Constructs a 3d vector with X, Y, Z from Vector3 and W from a scalar. More... | |
| Vector4 (float value) | |
| Constructs a 4d vector with X, Y, Z and W set to the same value. More... | |
| override bool | Equals (object obj) |
| Compares whether current instance is equal to specified Object. More... | |
| bool | Equals (Vector4 other) |
| Compares whether current instance is equal to specified Vector4. More... | |
| override int | GetHashCode () |
| Gets the hash code of this Vector4. More... | |
| float | Length () |
| Returns the length of this Vector4. More... | |
| float | LengthSquared () |
| Returns the squared length of this Vector4. More... | |
| void | Normalize () |
| Turns this Vector4 to a unit vector with the same direction. More... | |
| override string | ToString () |
| Returns a String representation of this Vector4 in the format: {X:[X] Y:[Y] Z:[Z] W:[W]} More... | |
Static Public Member Functions | |
| static Vector4 | Add (Vector4 value1, Vector4 value2) |
| Performs vector addition on value1 and value2 . More... | |
| static void | Add (ref Vector4 value1, ref Vector4 value2, out Vector4 result) |
| Performs vector addition on value1 and value2 , storing the result of the addition in result . More... | |
| static Vector4 | Barycentric (Vector4 value1, Vector4 value2, Vector4 value3, float amount1, float amount2) |
| Creates a new Vector4 that contains the cartesian coordinates of a vector specified in barycentric coordinates and relative to 4d-triangle. More... | |
| static void | Barycentric (ref Vector4 value1, ref Vector4 value2, ref Vector4 value3, float amount1, float amount2, out Vector4 result) |
| Creates a new Vector4 that contains the cartesian coordinates of a vector specified in barycentric coordinates and relative to 4d-triangle. More... | |
| static Vector4 | CatmullRom (Vector4 value1, Vector4 value2, Vector4 value3, Vector4 value4, float amount) |
| Creates a new Vector4 that contains CatmullRom interpolation of the specified vectors. More... | |
| static void | CatmullRom (ref Vector4 value1, ref Vector4 value2, ref Vector4 value3, ref Vector4 value4, float amount, out Vector4 result) |
| Creates a new Vector4 that contains CatmullRom interpolation of the specified vectors. More... | |
| static Vector4 | Clamp (Vector4 value1, Vector4 min, Vector4 max) |
| Clamps the specified value within a range. More... | |
| static void | Clamp (ref Vector4 value1, ref Vector4 min, ref Vector4 max, out Vector4 result) |
| Clamps the specified value within a range. More... | |
| static float | Distance (Vector4 value1, Vector4 value2) |
| Returns the distance between two vectors. More... | |
| static void | Distance (ref Vector4 value1, ref Vector4 value2, out float result) |
| Returns the distance between two vectors. More... | |
| static float | DistanceSquared (Vector4 value1, Vector4 value2) |
| Returns the squared distance between two vectors. More... | |
| static void | DistanceSquared (ref Vector4 value1, ref Vector4 value2, out float result) |
| Returns the squared distance between two vectors. More... | |
| static Vector4 | Divide (Vector4 value1, Vector4 value2) |
| Divides the components of a Vector4 by the components of another Vector4. More... | |
| static Vector4 | Divide (Vector4 value1, float divider) |
| Divides the components of a Vector4 by a scalar. More... | |
| static void | Divide (ref Vector4 value1, float divider, out Vector4 result) |
| Divides the components of a Vector4 by a scalar. More... | |
| static void | Divide (ref Vector4 value1, ref Vector4 value2, out Vector4 result) |
| Divides the components of a Vector4 by the components of another Vector4. More... | |
| static float | Dot (Vector4 value1, Vector4 value2) |
| Returns a dot product of two vectors. More... | |
| static void | Dot (ref Vector4 value1, ref Vector4 value2, out float result) |
| Returns a dot product of two vectors. More... | |
| static Vector4 | Hermite (Vector4 value1, Vector4 tangent1, Vector4 value2, Vector4 tangent2, float amount) |
| Creates a new Vector4 that contains hermite spline interpolation. More... | |
| static void | Hermite (ref Vector4 value1, ref Vector4 tangent1, ref Vector4 value2, ref Vector4 tangent2, float amount, out Vector4 result) |
| Creates a new Vector4 that contains hermite spline interpolation. More... | |
| static Vector4 | Lerp (Vector4 value1, Vector4 value2, float amount) |
| Creates a new Vector4 that contains linear interpolation of the specified vectors. More... | |
| static void | Lerp (ref Vector4 value1, ref Vector4 value2, float amount, out Vector4 result) |
| Creates a new Vector4 that contains linear interpolation of the specified vectors. More... | |
| static Vector4 | LerpPrecise (Vector4 value1, Vector4 value2, float amount) |
| Creates a new Vector4 that contains linear interpolation of the specified vectors. Uses MathHelper.LerpPrecise on MathHelper for the interpolation. Less efficient but more precise compared to Vector4.Lerp(Vector4, Vector4, float). See remarks section of MathHelper.LerpPrecise on MathHelper for more info. More... | |
| static void | LerpPrecise (ref Vector4 value1, ref Vector4 value2, float amount, out Vector4 result) |
| Creates a new Vector4 that contains linear interpolation of the specified vectors. Uses MathHelper.LerpPrecise on MathHelper for the interpolation. Less efficient but more precise compared to Vector4.Lerp(ref Vector4, ref Vector4, float, out Vector4). See remarks section of MathHelper.LerpPrecise on MathHelper for more info. More... | |
| static Vector4 | Max (Vector4 value1, Vector4 value2) |
| Creates a new Vector4 that contains a maximal values from the two vectors. More... | |
| static void | Max (ref Vector4 value1, ref Vector4 value2, out Vector4 result) |
| Creates a new Vector4 that contains a maximal values from the two vectors. More... | |
| static Vector4 | Min (Vector4 value1, Vector4 value2) |
| Creates a new Vector4 that contains a minimal values from the two vectors. More... | |
| static void | Min (ref Vector4 value1, ref Vector4 value2, out Vector4 result) |
| Creates a new Vector4 that contains a minimal values from the two vectors. More... | |
| static Vector4 | Multiply (Vector4 value1, Vector4 value2) |
| Creates a new Vector4 that contains a multiplication of two vectors. More... | |
| static Vector4 | Multiply (Vector4 value1, float scaleFactor) |
| Creates a new Vector4 that contains a multiplication of Vector4 and a scalar. More... | |
| static void | Multiply (ref Vector4 value1, float scaleFactor, out Vector4 result) |
| Creates a new Vector4 that contains a multiplication of Vector4 and a scalar. More... | |
| static void | Multiply (ref Vector4 value1, ref Vector4 value2, out Vector4 result) |
| Creates a new Vector4 that contains a multiplication of two vectors. More... | |
| static Vector4 | Negate (Vector4 value) |
| Creates a new Vector4 that contains the specified vector inversion. More... | |
| static void | Negate (ref Vector4 value, out Vector4 result) |
| Creates a new Vector4 that contains the specified vector inversion. More... | |
| static Vector4 | Normalize (Vector4 value) |
| Creates a new Vector4 that contains a normalized values from another vector. More... | |
| static void | Normalize (ref Vector4 value, out Vector4 result) |
| Creates a new Vector4 that contains a normalized values from another vector. More... | |
| static Vector4 | SmoothStep (Vector4 value1, Vector4 value2, float amount) |
| Creates a new Vector4 that contains cubic interpolation of the specified vectors. More... | |
| static void | SmoothStep (ref Vector4 value1, ref Vector4 value2, float amount, out Vector4 result) |
| Creates a new Vector4 that contains cubic interpolation of the specified vectors. More... | |
| static Vector4 | Subtract (Vector4 value1, Vector4 value2) |
| Creates a new Vector4 that contains subtraction of on Vector4 from a another. More... | |
| static void | Subtract (ref Vector4 value1, ref Vector4 value2, out Vector4 result) |
| Creates a new Vector4 that contains subtraction of on Vector4 from a another. More... | |
| static Vector4 | Transform (Vector2 value, Matrix matrix) |
| Creates a new Vector4 that contains a transformation of 2d-vector by the specified Matrix. More... | |
| static Vector4 | Transform (Vector2 value, Quaternion rotation) |
| Creates a new Vector4 that contains a transformation of 2d-vector by the specified Quaternion. More... | |
| static Vector4 | Transform (Vector3 value, Matrix matrix) |
| Creates a new Vector4 that contains a transformation of 3d-vector by the specified Matrix. More... | |
| static Vector4 | Transform (Vector3 value, Quaternion rotation) |
| Creates a new Vector4 that contains a transformation of 3d-vector by the specified Quaternion. More... | |
| static Vector4 | Transform (Vector4 value, Matrix matrix) |
| Creates a new Vector4 that contains a transformation of 4d-vector by the specified Matrix. More... | |
| static Vector4 | Transform (Vector4 value, Quaternion rotation) |
| Creates a new Vector4 that contains a transformation of 4d-vector by the specified Quaternion. More... | |
| static void | Transform (ref Vector2 value, ref Matrix matrix, out Vector4 result) |
| Creates a new Vector4 that contains a transformation of 2d-vector by the specified Matrix. More... | |
| static void | Transform (ref Vector2 value, ref Quaternion rotation, out Vector4 result) |
| Creates a new Vector4 that contains a transformation of 2d-vector by the specified Quaternion. More... | |
| static void | Transform (ref Vector3 value, ref Matrix matrix, out Vector4 result) |
| Creates a new Vector4 that contains a transformation of 3d-vector by the specified Matrix. More... | |
| static void | Transform (ref Vector3 value, ref Quaternion rotation, out Vector4 result) |
| Creates a new Vector4 that contains a transformation of 3d-vector by the specified Quaternion. More... | |
| static void | Transform (ref Vector4 value, ref Matrix matrix, out Vector4 result) |
| Creates a new Vector4 that contains a transformation of 4d-vector by the specified Matrix. More... | |
| static void | Transform (ref Vector4 value, ref Quaternion rotation, out Vector4 result) |
| Creates a new Vector4 that contains a transformation of 4d-vector by the specified Quaternion. More... | |
| static void | Transform (Vector4[] sourceArray, int sourceIndex, ref Matrix matrix, Vector4[] destinationArray, int destinationIndex, int length) |
| Apply transformation on vectors within array of Vector4 by the specified Matrix and places the results in an another array. More... | |
| static void | Transform (Vector4[] sourceArray, int sourceIndex, ref Quaternion rotation, Vector4[] destinationArray, int destinationIndex, int length) |
| Apply transformation on vectors within array of Vector4 by the specified Quaternion and places the results in an another array. More... | |
| static void | Transform (Vector4[] sourceArray, ref Matrix matrix, Vector4[] destinationArray) |
| Apply transformation on all vectors within array of Vector4 by the specified Matrix and places the results in an another array. More... | |
| static void | Transform (Vector4[] sourceArray, ref Quaternion rotation, Vector4[] destinationArray) |
| Apply transformation on all vectors within array of Vector4 by the specified Quaternion and places the results in an another array. More... | |
| static Vector4 | operator- (Vector4 value) |
| Inverts values in the specified Vector4. More... | |
| static bool | operator== (Vector4 value1, Vector4 value2) |
| Compares whether two Vector4 instances are equal. More... | |
| static bool | operator!= (Vector4 value1, Vector4 value2) |
| Compares whether two Vector4 instances are not equal. More... | |
| static Vector4 | operator+ (Vector4 value1, Vector4 value2) |
| Adds two vectors. More... | |
| static Vector4 | operator- (Vector4 value1, Vector4 value2) |
| Subtracts a Vector4 from a Vector4. More... | |
| static Vector4 | operator* (Vector4 value1, Vector4 value2) |
| Multiplies the components of two vectors by each other. More... | |
| static Vector4 | operator* (Vector4 value, float scaleFactor) |
| Multiplies the components of vector by a scalar. More... | |
| static Vector4 | operator* (float scaleFactor, Vector4 value) |
| Multiplies the components of vector by a scalar. More... | |
| static Vector4 | operator/ (Vector4 value1, Vector4 value2) |
| Divides the components of a Vector4 by the components of another Vector4. More... | |
| static Vector4 | operator/ (Vector4 value1, float divider) |
| Divides the components of a Vector4 by a scalar. More... | |
Public Attributes | |
| float | X |
| The x coordinate of this Vector4. More... | |
| float | Y |
| The y coordinate of this Vector4. More... | |
| float | Z |
| The z coordinate of this Vector4. More... | |
| float | W |
| The w coordinate of this Vector4. More... | |
Static Public Attributes | |
| static readonly int | SizeInBytes = System.Runtime.InteropServices.Marshal.SizeOf(new Vector4()) |
| Defines the size of the Vector4 struct in bytes. More... | |
Properties | |
| static Vector4 | Zero [get] |
| Returns a Vector4 with components 0, 0, 0, 0. More... | |
| static Vector4 | One [get] |
| Returns a Vector4 with components 1, 1, 1, 1. More... | |
| static Vector4 | UnitX [get] |
| Returns a Vector4 with components 1, 0, 0, 0. More... | |
| static Vector4 | UnitY [get] |
| Returns a Vector4 with components 0, 1, 0, 0. More... | |
| static Vector4 | UnitZ [get] |
| Returns a Vector4 with components 0, 0, 1, 0. More... | |
| static Vector4 | UnitW [get] |
| Returns a Vector4 with components 0, 0, 0, 1. More... | |
Describes a 4D-vector.
Definition at line 12 of file Vector4.cs.
|
inline |
Constructs a 3d vector with X, Y, Z and W from four values.
| x | The x coordinate in 4d-space. |
| y | The y coordinate in 4d-space. |
| z | The z coordinate in 4d-space. |
| w | The w coordinate in 4d-space. |
Definition at line 118 of file Vector4.cs.
|
inline |
Constructs a 3d vector with X and Z from Vector2 and Z and W from the scalars.
| value | The x and y coordinates in 4d-space. |
| z | The z coordinate in 4d-space. |
| w | The w coordinate in 4d-space. |
Definition at line 132 of file Vector4.cs.
|
inline |
Constructs a 3d vector with X, Y, Z from Vector3 and W from a scalar.
| value | The x, y and z coordinates in 4d-space. |
| w | The w coordinate in 4d-space. |
Definition at line 145 of file Vector4.cs.
|
inline |
Constructs a 4d vector with X, Y, Z and W set to the same value.
| value | The x, y, z and w coordinates in 4d-space. |
Definition at line 157 of file Vector4.cs.
Performs vector addition on value1 and value2 .
| value1 | The first vector to add. |
| value2 | The second vector to add. |
Definition at line 171 of file Vector4.cs.
|
inlinestatic |
Performs vector addition on value1 and value2 , storing the result of the addition in result .
| value1 | The first vector to add. |
| value2 | The second vector to add. |
| result | The result of the vector addition. |
Definition at line 188 of file Vector4.cs.
|
inlinestatic |
Creates a new Vector4 that contains the cartesian coordinates of a vector specified in barycentric coordinates and relative to 4d-triangle.
| value1 | The first vector of 4d-triangle. |
| value2 | The second vector of 4d-triangle. |
| value3 | The third vector of 4d-triangle. |
| amount1 | Barycentric scalar b2 which represents a weighting factor towards second vector of 4d-triangle. |
| amount2 | Barycentric scalar b3 which represents a weighting factor towards third vector of 4d-triangle. |
Definition at line 205 of file Vector4.cs.
|
inlinestatic |
Creates a new Vector4 that contains the cartesian coordinates of a vector specified in barycentric coordinates and relative to 4d-triangle.
| value1 | The first vector of 4d-triangle. |
| value2 | The second vector of 4d-triangle. |
| value3 | The third vector of 4d-triangle. |
| amount1 | Barycentric scalar b2 which represents a weighting factor towards second vector of 4d-triangle. |
| amount2 | Barycentric scalar b3 which represents a weighting factor towards third vector of 4d-triangle. |
| result | The cartesian translation of barycentric coordinates as an output parameter. |
Definition at line 223 of file Vector4.cs.
|
inlinestatic |
Creates a new Vector4 that contains CatmullRom interpolation of the specified vectors.
| value1 | The first vector in interpolation. |
| value2 | The second vector in interpolation. |
| value3 | The third vector in interpolation. |
| value4 | The fourth vector in interpolation. |
| amount | Weighting factor. |
Definition at line 240 of file Vector4.cs.
|
inlinestatic |
Creates a new Vector4 that contains CatmullRom interpolation of the specified vectors.
| value1 | The first vector in interpolation. |
| value2 | The second vector in interpolation. |
| value3 | The third vector in interpolation. |
| value4 | The fourth vector in interpolation. |
| amount | Weighting factor. |
| result | The result of CatmullRom interpolation as an output parameter. |
Definition at line 258 of file Vector4.cs.
Clamps the specified value within a range.
| value1 | The value to clamp. |
| min | The min value. |
| max | The max value. |
Definition at line 273 of file Vector4.cs.
|
inlinestatic |
Clamps the specified value within a range.
| value1 | The value to clamp. |
| min | The min value. |
| max | The max value. |
| result | The clamped value as an output parameter. |
Definition at line 289 of file Vector4.cs.
Returns the distance between two vectors.
| value1 | The first vector. |
| value2 | The second vector. |
Definition at line 303 of file Vector4.cs.
|
inlinestatic |
Returns the distance between two vectors.
| value1 | The first vector. |
| value2 | The second vector. |
| result | The distance between two vectors as an output parameter. |
Definition at line 314 of file Vector4.cs.
Returns the squared distance between two vectors.
| value1 | The first vector. |
| value2 | The second vector. |
Definition at line 325 of file Vector4.cs.
|
inlinestatic |
Returns the squared distance between two vectors.
| value1 | The first vector. |
| value2 | The second vector. |
| result | The squared distance between two vectors as an output parameter. |
Definition at line 339 of file Vector4.cs.
Divides the components of a Vector4 by a scalar.
| value1 | Source Vector4. |
| divider | Divisor scalar. |
Definition at line 368 of file Vector4.cs.
|
inlinestatic |
Divides the components of a Vector4 by a scalar.
| value1 | Source Vector4. |
| divider | Divisor scalar. |
| result | The result of dividing a vector by a scalar as an output parameter. |
Definition at line 384 of file Vector4.cs.
Returns a dot product of two vectors.
| value1 | The first vector. |
| value2 | The second vector. |
Definition at line 413 of file Vector4.cs.
|
inlinestatic |
Returns a dot product of two vectors.
| value1 | The first vector. |
| value2 | The second vector. |
| result | The dot product of two vectors as an output parameter. |
Definition at line 424 of file Vector4.cs.
|
inline |
Compares whether current instance is equal to specified Object.
| obj | The Object to compare. |
true if the instances are equal; false otherwise.Definition at line 434 of file Vector4.cs.
|
inline |
Compares whether current instance is equal to specified Vector4.
| other | The Vector4 to compare. |
true if the instances are equal; false otherwise.Definition at line 444 of file Vector4.cs.
|
inline |
Gets the hash code of this Vector4.
Definition at line 456 of file Vector4.cs.
|
inlinestatic |
Creates a new Vector4 that contains hermite spline interpolation.
| value1 | The first position vector. |
| tangent1 | The first tangent vector. |
| value2 | The second position vector. |
| tangent2 | The second tangent vector. |
| amount | Weighting factor. |
Definition at line 470 of file Vector4.cs.
|
inlinestatic |
Creates a new Vector4 that contains hermite spline interpolation.
| value1 | The first position vector. |
| tangent1 | The first tangent vector. |
| value2 | The second position vector. |
| tangent2 | The second tangent vector. |
| amount | Weighting factor. |
| result | The hermite spline interpolation vector as an output parameter. |
Definition at line 487 of file Vector4.cs.
|
inline |
Returns the length of this Vector4.
Definition at line 499 of file Vector4.cs.
|
inline |
Returns the squared length of this Vector4.
Definition at line 509 of file Vector4.cs.
Creates a new Vector4 that contains linear interpolation of the specified vectors.
| value1 | The first vector. |
| value2 | The second vector. |
| amount | Weighting value(between 0.0 and 1.0). |
Definition at line 521 of file Vector4.cs.
|
inlinestatic |
Creates a new Vector4 that contains linear interpolation of the specified vectors.
| value1 | The first vector. |
| value2 | The second vector. |
| amount | Weighting value(between 0.0 and 1.0). |
| result | The result of linear interpolation of the specified vectors as an output parameter. |
Definition at line 537 of file Vector4.cs.
|
inlinestatic |
Creates a new Vector4 that contains linear interpolation of the specified vectors. Uses MathHelper.LerpPrecise on MathHelper for the interpolation. Less efficient but more precise compared to Vector4.Lerp(Vector4, Vector4, float). See remarks section of MathHelper.LerpPrecise on MathHelper for more info.
| value1 | The first vector. |
| value2 | The second vector. |
| amount | Weighting value(between 0.0 and 1.0). |
Definition at line 555 of file Vector4.cs.
|
inlinestatic |
Creates a new Vector4 that contains linear interpolation of the specified vectors. Uses MathHelper.LerpPrecise on MathHelper for the interpolation. Less efficient but more precise compared to Vector4.Lerp(ref Vector4, ref Vector4, float, out Vector4). See remarks section of MathHelper.LerpPrecise on MathHelper for more info.
| value1 | The first vector. |
| value2 | The second vector. |
| amount | Weighting value(between 0.0 and 1.0). |
| result | The result of linear interpolation of the specified vectors as an output parameter. |
Definition at line 574 of file Vector4.cs.
Creates a new Vector4 that contains a maximal values from the two vectors.
| value1 | The first vector. |
| value2 | The second vector. |
Definition at line 588 of file Vector4.cs.
|
inlinestatic |
Creates a new Vector4 that contains a maximal values from the two vectors.
| value1 | The first vector. |
| value2 | The second vector. |
| result | The Vector4 with maximal values from the two vectors as an output parameter. |
Definition at line 603 of file Vector4.cs.
Creates a new Vector4 that contains a minimal values from the two vectors.
| value1 | The first vector. |
| value2 | The second vector. |
Definition at line 617 of file Vector4.cs.
|
inlinestatic |
Creates a new Vector4 that contains a minimal values from the two vectors.
| value1 | The first vector. |
| value2 | The second vector. |
| result | The Vector4 with minimal values from the two vectors as an output parameter. |
Definition at line 632 of file Vector4.cs.
Creates a new Vector4 that contains a multiplication of two vectors.
Definition at line 646 of file Vector4.cs.
Creates a new Vector4 that contains a multiplication of Vector4 and a scalar.
| value1 | Source Vector4. |
| scaleFactor | Scalar value. |
Definition at line 661 of file Vector4.cs.
|
inlinestatic |
Creates a new Vector4 that contains a multiplication of Vector4 and a scalar.
| value1 | Source Vector4. |
| scaleFactor | Scalar value. |
| result | The result of the multiplication with a scalar as an output parameter. |
Definition at line 676 of file Vector4.cs.
|
inlinestatic |
Creates a new Vector4 that contains a multiplication of two vectors.
| value1 | Source Vector4. |
| value2 | Source Vector4. |
| result | The result of the vector multiplication as an output parameter. |
Definition at line 690 of file Vector4.cs.
Creates a new Vector4 that contains the specified vector inversion.
| value | Source Vector4. |
Definition at line 703 of file Vector4.cs.
Creates a new Vector4 that contains the specified vector inversion.
| value | Source Vector4. |
| result | The result of the vector inversion as an output parameter. |
Definition at line 714 of file Vector4.cs.
|
inline |
Turns this Vector4 to a unit vector with the same direction.
Definition at line 725 of file Vector4.cs.
Creates a new Vector4 that contains a normalized values from another vector.
| value | Source Vector4. |
Definition at line 735 of file Vector4.cs.
Creates a new Vector4 that contains a normalized values from another vector.
| value | Source Vector4. |
| result | Unit vector as an output parameter. |
Definition at line 748 of file Vector4.cs.
Compares whether two Vector4 instances are not equal.
| value1 | Vector4 instance on the left of the not equal sign. |
| value2 | Vector4 instance on the right of the not equal sign. |
true if the instances are not equal; false otherwise.Definition at line 1128 of file Vector4.cs.
Multiplies the components of two vectors by each other.
| value1 | Source Vector4 on the left of the mul sign. |
| value2 | Source Vector4 on the right of the mul sign. |
Definition at line 1169 of file Vector4.cs.
Multiplies the components of vector by a scalar.
| value | Source Vector4 on the left of the mul sign. |
| scaleFactor | Scalar value on the right of the mul sign. |
Definition at line 1184 of file Vector4.cs.
Multiplies the components of vector by a scalar.
| scaleFactor | Scalar value on the left of the mul sign. |
| value | Source Vector4 on the right of the mul sign. |
Definition at line 1199 of file Vector4.cs.
Adds two vectors.
| value1 | Source Vector4 on the left of the add sign. |
| value2 | Source Vector4 on the right of the add sign. |
Definition at line 1139 of file Vector4.cs.
Inverts values in the specified Vector4.
| value | Source Vector4 on the right of the sub sign. |
Definition at line 1103 of file Vector4.cs.
Divides the components of a Vector4 by a scalar.
| value1 | Source Vector4 on the left of the div sign. |
| divider | Divisor scalar on the right of the div sign. |
Definition at line 1229 of file Vector4.cs.
Compares whether two Vector4 instances are equal.
| value1 | Vector4 instance on the left of the equal sign. |
| value2 | Vector4 instance on the right of the equal sign. |
true if the instances are equal; false otherwise.Definition at line 1114 of file Vector4.cs.
|
inlinestatic |
Creates a new Vector4 that contains cubic interpolation of the specified vectors.
Definition at line 766 of file Vector4.cs.
|
inlinestatic |
Creates a new Vector4 that contains cubic interpolation of the specified vectors.
| value1 | Source Vector4. |
| value2 | Source Vector4. |
| amount | Weighting value. |
| result | Cubic interpolation of the specified vectors as an output parameter. |
Definition at line 782 of file Vector4.cs.
|
inline |
|
inlinestatic |
Creates a new Vector4 that contains a transformation of 2d-vector by the specified Quaternion.
| value | Source Vector2. |
| rotation | The Quaternion which contains rotation transformation. |
Definition at line 838 of file Vector4.cs.
|
inlinestatic |
Creates a new Vector4 that contains a transformation of 3d-vector by the specified Quaternion.
| value | Source Vector3. |
| rotation | The Quaternion which contains rotation transformation. |
Definition at line 864 of file Vector4.cs.
|
inlinestatic |
Creates a new Vector4 that contains a transformation of 4d-vector by the specified Quaternion.
| value | Source Vector4. |
| rotation | The Quaternion which contains rotation transformation. |
Definition at line 889 of file Vector4.cs.
|
inlinestatic |
Creates a new Vector4 that contains a transformation of 2d-vector by the specified Quaternion.
| value | Source Vector2. |
| rotation | The Quaternion which contains rotation transformation. |
| result | Transformed Vector4 as an output parameter. |
Definition at line 916 of file Vector4.cs.
|
inlinestatic |
Creates a new Vector4 that contains a transformation of 3d-vector by the specified Quaternion.
| value | Source Vector3. |
| rotation | The Quaternion which contains rotation transformation. |
| result | Transformed Vector4 as an output parameter. |
Definition at line 941 of file Vector4.cs.
|
inlinestatic |
Creates a new Vector4 that contains a transformation of 4d-vector by the specified Quaternion.
| value | Source Vector4. |
| rotation | The Quaternion which contains rotation transformation. |
| result | Transformed Vector4 as an output parameter. |
Definition at line 970 of file Vector4.cs.
|
inlinestatic |
Apply transformation on vectors within array of Vector4 by the specified Matrix and places the results in an another array.
| sourceArray | Source array. |
| sourceIndex | The starting index of transformation in the source array. |
| matrix | The transformation Matrix. |
| destinationArray | Destination array. |
| destinationIndex | The starting index in the destination array, where the first Vector4 should be written. |
| length | The number of vectors to be transformed. |
Definition at line 985 of file Vector4.cs.
|
inlinestatic |
Apply transformation on vectors within array of Vector4 by the specified Quaternion and places the results in an another array.
| sourceArray | Source array. |
| sourceIndex | The starting index of transformation in the source array. |
| rotation | The Quaternion which contains rotation transformation. |
| destinationArray | Destination array. |
| destinationIndex | The starting index in the destination array, where the first Vector4 should be written. |
| length | The number of vectors to be transformed. |
Definition at line 1019 of file Vector4.cs.
|
inlinestatic |
Apply transformation on all vectors within array of Vector4 by the specified Matrix and places the results in an another array.
| sourceArray | Source array. |
| matrix | The transformation Matrix. |
| destinationArray | Destination array. |
Definition at line 1050 of file Vector4.cs.
|
inlinestatic |
Apply transformation on all vectors within array of Vector4 by the specified Quaternion and places the results in an another array.
| sourceArray | Source array. |
| rotation | The Quaternion which contains rotation transformation. |
| destinationArray | Destination array. |
Definition at line 1072 of file Vector4.cs.
|
static |
Defines the size of the Vector4 struct in bytes.
Definition at line 17 of file Vector4.cs.
| float Shift.Vector4.W |
The w coordinate of this Vector4.
Definition at line 96 of file Vector4.cs.
| float Shift.Vector4.X |
The x coordinate of this Vector4.
Definition at line 78 of file Vector4.cs.
| float Shift.Vector4.Y |
The y coordinate of this Vector4.
Definition at line 84 of file Vector4.cs.
| float Shift.Vector4.Z |
The z coordinate of this Vector4.
Definition at line 90 of file Vector4.cs.
|
staticget |
Returns a Vector4 with components 1, 1, 1, 1.
Definition at line 38 of file Vector4.cs.
|
staticget |
Returns a Vector4 with components 0, 0, 0, 1.
Definition at line 70 of file Vector4.cs.
|
staticget |
Returns a Vector4 with components 1, 0, 0, 0.
Definition at line 46 of file Vector4.cs.
|
staticget |
Returns a Vector4 with components 0, 1, 0, 0.
Definition at line 54 of file Vector4.cs.
|
staticget |
Returns a Vector4 with components 0, 0, 1, 0.
Definition at line 62 of file Vector4.cs.
|
staticget |
Returns a Vector4 with components 0, 0, 0, 0.
Definition at line 30 of file Vector4.cs.