This repository was archived by the owner on Dec 13, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 123
VRageMath.Vector4
Morten Aune Lyrstad edited this page Apr 16, 2022
·
52 revisions
← Index ← Namespace Index
public struct Vector4: IEquatable<Vector4>Defines a vector with four components.
Namespace: VRageMath
Assembly: VRage.Math.dll
Implements:
| Member | Description |
|---|---|
| static Vector4 One | |
| static Vector4 UnitW | |
| static Vector4 UnitX | |
| static Vector4 UnitY | |
| static Vector4 UnitZ | |
| static Vector4 Zero | |
| 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. |
| Member | Description |
|---|---|
| float Item { get; set; } |
| Member | Description |
|---|---|
| Vector4(float, float, float, float) | |
| Vector4(Vector2, float, float) | |
| Vector4(Vector3, float) | |
| Vector4(float) |
| Member | Description |
|---|---|
| static Vector4 Add(Vector4, Vector4) | Adds two vectors. |
| static void Add(ref Vector4, ref Vector4, out Vector4) | Adds two vectors. |
| static Vector4 Barycentric(Vector4, Vector4, Vector4, float, float) | Returns a Vector4 containing the 4D Cartesian coordinates of a point specified in barycentric (areal) coordinates relative to a 4D triangle. |
| static void Barycentric(ref Vector4, ref Vector4, ref Vector4, float, float, out Vector4) | 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, Vector4, Vector4, Vector4, float) | Performs a Catmull-Rom interpolation using the specified positions. |
| static void CatmullRom(ref Vector4, ref Vector4, ref Vector4, ref Vector4, float, out Vector4) | Performs a Catmull-Rom interpolation using the specified positions. |
| static Vector4 Clamp(Vector4, Vector4, Vector4) | Restricts a value to be within a specified range. |
| static void Clamp(ref Vector4, ref Vector4, ref Vector4, out Vector4) | Restricts a value to be within a specified range. |
| static float Distance(Vector4, Vector4) | Calculates the distance between two vectors. |
| static void Distance(ref Vector4, ref Vector4, out float) | Calculates the distance between two vectors. |
| static float DistanceSquared(Vector4, Vector4) | Calculates the distance between two vectors squared. |
| static void DistanceSquared(ref Vector4, ref Vector4, out float) | Calculates the distance between two vectors squared. |
| static Vector4 Divide(Vector4, Vector4) | Divides the components of a vector by the components of another vector. |
| static void Divide(ref Vector4, ref Vector4, out Vector4) | Divides the components of a vector by the components of another vector. |
| static Vector4 Divide(Vector4, float) | Divides a vector by a scalar value. |
| static void Divide(ref Vector4, float, out Vector4) | Divides a vector by a scalar value. |
| static float Dot(Vector4, Vector4) | Calculates the dot product of two vectors. |
| static void Dot(ref Vector4, ref Vector4, out float) | Calculates the dot product of two vectors. |
| static Vector4 Hermite(Vector4, Vector4, Vector4, Vector4, float) | Performs a Hermite spline interpolation. |
| static void Hermite(ref Vector4, ref Vector4, ref Vector4, ref Vector4, float, out Vector4) | Performs a Hermite spline interpolation. |
| static Vector4 Lerp(Vector4, Vector4, float) | Performs a linear interpolation between two vectors. |
| static void Lerp(ref Vector4, ref Vector4, float, out Vector4) | Performs a linear interpolation between two vectors. |
| static Vector4 Max(Vector4, Vector4) | Returns a vector that contains the highest value from each matching pair of components. |
| static void Max(ref Vector4, ref Vector4, out Vector4) | Returns a vector that contains the highest value from each matching pair of components. |
| static Vector4 Min(Vector4, Vector4) | Returns a vector that contains the lowest value from each matching pair of components. |
| static void Min(ref Vector4, ref Vector4, out Vector4) | Returns a vector that contains the lowest value from each matching pair of components. |
| static Vector4 Multiply(Vector4, Vector4) | Multiplies the components of two vectors by each other. |
| static void Multiply(ref Vector4, ref Vector4, out Vector4) | Multiplies the components of two vectors by each other. |
| static Vector4 Multiply(Vector4, float) | Multiplies a vector by a scalar. |
| static void Multiply(ref Vector4, float, out Vector4) | Multiplies a vector by a scalar value. |
| static Vector4 Negate(Vector4) | Returns a vector pointing in the opposite direction. |
| static void Negate(ref Vector4, out Vector4) | Returns a vector pointing in the opposite direction. |
| static Vector4 Normalize(Vector4) | Creates a unit vector from the specified vector. |
| static void Normalize(ref Vector4, out Vector4) | Returns a normalized version of the specified vector. |
| static Vector4 PackOrthoMatrix(Vector3, Vector3, Vector3) | |
| static Vector4 PackOrthoMatrix(ref Matrix) | |
| static Vector4 SmoothStep(Vector4, Vector4, float) | Interpolates between two values using a cubic equation. |
| static void SmoothStep(ref Vector4, ref Vector4, float, out Vector4) | Interpolates between two values using a cubic equation. |
| static Vector4 Subtract(Vector4, Vector4) | Subtracts a vector from a vector. |
| static void Subtract(ref Vector4, ref Vector4, out Vector4) | Subtracts a vector from a vector. |
| static Vector4 Transform(Vector2, Matrix) | Transforms a Vector2 by the given Matrix. |
| static void Transform(ref Vector2, ref Matrix, out Vector4) | Transforms a Vector2 by the given Matrix. |
| static Vector4 Transform(Vector3, Matrix) | Transforms a Vector3 by the given Matrix. |
| static void Transform(ref Vector3, ref Matrix, out Vector4) | Transforms a Vector3 by the given Matrix. |
| static Vector4 Transform(Vector4, Matrix) | Transforms a Vector4 by the specified Matrix. |
| static void Transform(ref Vector4, ref Matrix, out Vector4) | Transforms a Vector4 by the given Matrix. |
| static Vector4 Transform(Vector2, Quaternion) | Transforms a Vector2 by a specified Quaternion into a Vector4. |
| static void Transform(ref Vector2, ref Quaternion, out Vector4) | Transforms a Vector2 by a specified Quaternion into a Vector4. |
| static Vector4 Transform(Vector3, Quaternion) | Transforms a Vector3 by a specified Quaternion into a Vector4. |
| static void Transform(ref Vector3, ref Quaternion, out Vector4) | Transforms a Vector3 by a specified Quaternion into a Vector4. |
| static Vector4 Transform(Vector4, Quaternion) | Transforms a Vector4 by a specified Quaternion. |
| static void Transform(ref Vector4, ref Quaternion, out Vector4) | Transforms a Vector4 by a specified Quaternion. |
| [static void Transform(Vector4[], ref Matrix, Vector4[])](VRageMath.Vector4.Transform) | Transforms an array of Vector4s by a specified Matrix. |
| [static void Transform(Vector4[], int, ref Matrix, Vector4[], int, int)](VRageMath.Vector4.Transform) | 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[], ref Quaternion, Vector4[])](VRageMath.Vector4.Transform) | Transforms an array of Vector4s by a specified Quaternion. |
| [static void Transform(Vector4[], int, ref Quaternion, Vector4[], int, int)](VRageMath.Vector4.Transform) | Transforms a specified range in an array of Vector4s by a specified Quaternion into a specified range in a destination array. |
| static Matrix UnpackOrthoMatrix(ref Vector4) | |
| static void UnpackOrthoMatrix(ref Vector4, out Matrix) | |
| bool Equals(Vector4) | Determines whether the specified Object is equal to the Vector4. |
| bool Equals(object) | Returns a value that indicates whether the current instance is equal to a specified object. |
| int GetHashCode() | Gets the hash code of this object. |
| float Length() | Calculates the length of the vector. |
| float LengthSquared() | Calculates the length of the vector squared. |
| void Normalize() | Turns the current vector into a unit vector. |
| string ToString() | Retrieves a string representation of the current object. |
Do you have questions, comments, suggestions for improvements? Is there something I can do better? Did I make a mistake? Please add an issue here, and prefix your issue title with Wiki. Thank you, your help will be very appreciated!