VRageMath
Vector4D
Assembly: VRage.Math.dll
public struct Vector4D: IEquatable<Vector4>
Defines a vector with four components.
Fields
| Member | Description |
|---|---|
| static One | |
| static UnitW | |
| static UnitX | |
| static UnitY | |
| static UnitZ | |
| static Zero | |
| W | Gets or sets the w-component of the vector. |
| X | Gets or sets the x-component of the vector. |
| Y | Gets or sets the y-component of the vector. |
| Z | Gets or sets the z-component of the vector. |
Constructors
| Member | Description |
|---|---|
| Vector4D(double, double, double, double) | |
| Vector4D(Vector2, double, double) | |
| Vector4D(Vector3D, double) | |
| Vector4D(double) |
Methods
| Member | Description |
|---|---|
| static Add(Vector4D, Vector4D) | Adds two vectors. |
| static Add(ref Vector4D, ref Vector4D, out Vector4D) | Adds two vectors. |
| static Barycentric(Vector4D, Vector4D, Vector4D, double, double) | Returns a Vector4 containing the 4D Cartesian coordinates of a point specified in barycentric (areal) coordinates relative to a 4D triangle. |
| static Barycentric(ref Vector4D, ref Vector4D, ref Vector4D, double, double, out Vector4D) | Returns a Vector4 containing the 4D Cartesian coordinates of a point specified in Barycentric (areal) coordinates relative to a 4D triangle. |
| static CatmullRom(Vector4D, Vector4D, Vector4D, Vector4D, double) | Performs a Catmull-Rom interpolation using the specified positions. |
| static CatmullRom(ref Vector4D, ref Vector4D, ref Vector4D, ref Vector4D, double, out Vector4D) | Performs a Catmull-Rom interpolation using the specified positions. |
| static Clamp(Vector4D, Vector4D, Vector4D) | Restricts a value to be within a specified range. |
| static Clamp(ref Vector4D, ref Vector4D, ref Vector4D, out Vector4D) | Restricts a value to be within a specified range. |
| static Distance(Vector4, Vector4) | Calculates the distance between two vectors. |
| static Distance(ref Vector4, ref Vector4, out double) | Calculates the distance between two vectors. |
| static DistanceSquared(Vector4, Vector4) | Calculates the distance between two vectors squared. |
| static DistanceSquared(ref Vector4, ref Vector4, out double) | Calculates the distance between two vectors squared. |
| static Divide(Vector4D, Vector4D) | Divides the components of a vector by the components of another vector. |
| static Divide(ref Vector4D, ref Vector4D, out Vector4D) | Divides the components of a vector by the components of another vector. |
| static Divide(Vector4D, double) | Divides a vector by a scalar value. |
| static Divide(ref Vector4D, double, out Vector4D) | Divides a vector by a scalar value. |
| static Dot(Vector4, Vector4) | Calculates the dot product of two vectors. |
| static Dot(ref Vector4, ref Vector4, out double) | Calculates the dot product of two vectors. |
| static Hermite(Vector4D, Vector4D, Vector4D, Vector4D, double) | Performs a Hermite spline interpolation. |
| static Hermite(ref Vector4D, ref Vector4D, ref Vector4D, ref Vector4D, double, out Vector4D) | Performs a Hermite spline interpolation. |
| static Lerp(Vector4D, Vector4D, double) | Performs a linear interpolation between two vectors. |
| static Lerp(ref Vector4D, ref Vector4D, double, out Vector4D) | Performs a linear interpolation between two vectors. |
| static Max(Vector4, Vector4) | Returns a vector that contains the highest value from each matching pair of components. |
| static Max(ref Vector4, ref Vector4, out Vector4) | Returns a vector that contains the highest value from each matching pair of components. |
| static Min(Vector4, Vector4) | Returns a vector that contains the lowest value from each matching pair of components. |
| static Min(ref Vector4, ref Vector4, out Vector4) | Returns a vector that contains the lowest value from each matching pair of components. |
| static Multiply(Vector4D, Vector4D) | Multiplies the components of two vectors by each other. |
| static Multiply(ref Vector4, ref Vector4, out Vector4) | Multiplies the components of two vectors by each other. |
| static Multiply(Vector4D, double) | Multiplies a vector by a scalar. |
| static Multiply(ref Vector4D, double, out Vector4D) | Multiplies a vector by a scalar value. |
| static Negate(Vector4D) | Returns a vector pointing in the opposite direction. |
| static Negate(ref Vector4D, out Vector4D) | Returns a vector pointing in the opposite direction. |
| static Normalize(Vector4D) | Creates a unit vector from the specified vector. |
| static Normalize(ref Vector4D, out Vector4D) | Returns a normalized version of the specified vector. |
| static PackOrthoMatrix(Vector3D, Vector3, Vector3) | |
| static PackOrthoMatrix(ref MatrixD) | |
| static SmoothStep(Vector4D, Vector4D, double) | Interpolates between two values using a cubic equation. |
| static SmoothStep(ref Vector4D, ref Vector4D, double, out Vector4D) | Interpolates between two values using a cubic equation. |
| static Subtract(Vector4, Vector4) | Subtracts a vector from a vector. |
| static Subtract(ref Vector4D, ref Vector4D, out Vector4D) | Subtracts a vector from a vector. |
| static Transform(Vector2, MatrixD) | Transforms a Vector2 by the given Matrix. |
| static Transform(ref Vector2, ref MatrixD, out Vector4D) | Transforms a Vector2 by the given Matrix. |
| static Transform(Vector3D, MatrixD) | Transforms a Vector3 by the given Matrix. |
| static Transform(ref Vector3D, ref MatrixD, out Vector4D) | Transforms a Vector3 by the given Matrix. |
| static Transform(Vector4D, MatrixD) | Transforms a Vector4 by the specified Matrix. |
| static Transform(ref Vector4D, ref MatrixD, out Vector4D) | Transforms a Vector4 by the given Matrix. |
| static Transform(Vector2, Quaternion) | Transforms a Vector2 by a specified Quaternion into a Vector4. |
| static Transform(ref Vector2, ref Quaternion, out Vector4D) | Transforms a Vector2 by a specified Quaternion into a Vector4. |
| static Transform(Vector3D, Quaternion) | Transforms a Vector3 by a specified Quaternion into a Vector4. |
| static Transform(ref Vector3D, ref Quaternion, out Vector4D) | Transforms a Vector3 by a specified Quaternion into a Vector4. |
| static Transform(Vector4D, Quaternion) | Transforms a Vector4 by a specified Quaternion. |
| static Transform(ref Vector4D, ref Quaternion, out Vector4D) | Transforms a Vector4 by a specified Quaternion. |
| static Transform(Vector4D[], ref MatrixD, Vector4D[]) | Transforms an array of Vector4s by a specified Matrix. |
| static Transform(Vector4D[], int, ref MatrixD, Vector4D[], int, int) | Transforms a specified range in an array of Vector4s by a specified Matrix into a specified range in a destination array. |
| static Transform(Vector4D[], ref Quaternion, Vector4D[]) | Transforms an array of Vector4s by a specified Quaternion. |
| static Transform(Vector4D[], int, ref Quaternion, Vector4D[], int, int) | Transforms a specified range in an array of Vector4s by a specified Quaternion into a specified range in a destination array. |
| static UnpackOrthoMatrix(ref Vector4D) | |
| Equals(Vector4) | Determines whether the specified Object is equal to the Vector4. |
| Equals(object) | Returns a value that indicates whether the current instance is equal to a specified object. |
| GetHashCode() | Gets the hash code of this object. |
| Length() | Calculates the length of the vector. |
| LengthSquared() | Calculates the length of the vector squared. |
| Normalize() | Turns the current vector into a unit vector. |
| ToString() | Retrieves a string representation of the current object. |
Implements: