Skip to content
This repository was archived by the owner on Dec 13, 2025. It is now read-only.

VRageMath.Vector4D

Morten Aune Lyrstad edited this page Apr 16, 2022 · 52 revisions

IndexNamespace Index

Vector4D Struct

public struct Vector4D: IEquatable<Vector4>

Defines a vector with four components.

Namespace: VRageMath
Assembly: VRage.Math.dll

Implements:

Fields

Member Description
[static Vector4D One](VRageMath.Vector4D.One)
[static Vector4D UnitW](VRageMath.Vector4D.UnitW)
[static Vector4D UnitX](VRageMath.Vector4D.UnitX)
[static Vector4D UnitY](VRageMath.Vector4D.UnitY)
[static Vector4D UnitZ](VRageMath.Vector4D.UnitZ)
[static Vector4D Zero](VRageMath.Vector4D.Zero)
[double W](VRageMath.Vector4D.W) Gets or sets the w-component of the vector.
[double X](VRageMath.Vector4D.X) Gets or sets the x-component of the vector.
[double Y](VRageMath.Vector4D.Y) Gets or sets the y-component of the vector.
[double Z](VRageMath.Vector4D.Z) Gets or sets the z-component of the vector.

Constructors

Member Description
[Vector4D(double, double, double, double)](VRageMath.Vector4D..ctor)
[Vector4D(Vector2, double, double)](VRageMath.Vector4D..ctor)
[Vector4D(Vector3D, double)](VRageMath.Vector4D..ctor)
[Vector4D(double)](VRageMath.Vector4D..ctor)

Methods

Member Description
[static Vector4D Add(Vector4D, Vector4D)](VRageMath.Vector4D.Add) Adds two vectors.
[static void Add(ref Vector4D, ref Vector4D, out Vector4D)](VRageMath.Vector4D.Add) Adds two vectors.
[static Vector4D Barycentric(Vector4D, Vector4D, Vector4D, double, double)](VRageMath.Vector4D.Barycentric) 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 Vector4D, ref Vector4D, ref Vector4D, double, double, out Vector4D)](VRageMath.Vector4D.Barycentric) Returns a Vector4 containing the 4D Cartesian coordinates of a point specified in Barycentric (areal) coordinates relative to a 4D triangle.
[static Vector4D CatmullRom(Vector4D, Vector4D, Vector4D, Vector4D, double)](VRageMath.Vector4D.CatmullRom) Performs a Catmull-Rom interpolation using the specified positions.
[static void CatmullRom(ref Vector4D, ref Vector4D, ref Vector4D, ref Vector4D, double, out Vector4D)](VRageMath.Vector4D.CatmullRom) Performs a Catmull-Rom interpolation using the specified positions.
[static Vector4D Clamp(Vector4D, Vector4D, Vector4D)](VRageMath.Vector4D.Clamp) Restricts a value to be within a specified range.
[static void Clamp(ref Vector4D, ref Vector4D, ref Vector4D, out Vector4D)](VRageMath.Vector4D.Clamp) Restricts a value to be within a specified range.
[static double Distance(Vector4, Vector4)](VRageMath.Vector4D.Distance) Calculates the distance between two vectors.
[static void Distance(ref Vector4, ref Vector4, out double)](VRageMath.Vector4D.Distance) Calculates the distance between two vectors.
[static double DistanceSquared(Vector4, Vector4)](VRageMath.Vector4D.DistanceSquared) Calculates the distance between two vectors squared.
[static void DistanceSquared(ref Vector4, ref Vector4, out double)](VRageMath.Vector4D.DistanceSquared) Calculates the distance between two vectors squared.
[static Vector4D Divide(Vector4D, Vector4D)](VRageMath.Vector4D.Divide) Divides the components of a vector by the components of another vector.
[static void Divide(ref Vector4D, ref Vector4D, out Vector4D)](VRageMath.Vector4D.Divide) Divides the components of a vector by the components of another vector.
[static Vector4D Divide(Vector4D, double)](VRageMath.Vector4D.Divide) Divides a vector by a scalar value.
[static void Divide(ref Vector4D, double, out Vector4D)](VRageMath.Vector4D.Divide) Divides a vector by a scalar value.
[static double Dot(Vector4, Vector4)](VRageMath.Vector4D.Dot) Calculates the dot product of two vectors.
[static void Dot(ref Vector4, ref Vector4, out double)](VRageMath.Vector4D.Dot) Calculates the dot product of two vectors.
[static Vector4D Hermite(Vector4D, Vector4D, Vector4D, Vector4D, double)](VRageMath.Vector4D.Hermite) Performs a Hermite spline interpolation.
[static void Hermite(ref Vector4D, ref Vector4D, ref Vector4D, ref Vector4D, double, out Vector4D)](VRageMath.Vector4D.Hermite) Performs a Hermite spline interpolation.
[static Vector4D Lerp(Vector4D, Vector4D, double)](VRageMath.Vector4D.Lerp) Performs a linear interpolation between two vectors.
[static void Lerp(ref Vector4D, ref Vector4D, double, out Vector4D)](VRageMath.Vector4D.Lerp) Performs a linear interpolation between two vectors.
[static Vector4 Max(Vector4, Vector4)](VRageMath.Vector4D.Max) Returns a vector that contains the highest value from each matching pair of components.
[static void Max(ref Vector4, ref Vector4, out Vector4)](VRageMath.Vector4D.Max) Returns a vector that contains the highest value from each matching pair of components.
[static Vector4 Min(Vector4, Vector4)](VRageMath.Vector4D.Min) Returns a vector that contains the lowest value from each matching pair of components.
[static void Min(ref Vector4, ref Vector4, out Vector4)](VRageMath.Vector4D.Min) Returns a vector that contains the lowest value from each matching pair of components.
[static Vector4D Multiply(Vector4D, Vector4D)](VRageMath.Vector4D.Multiply) Multiplies the components of two vectors by each other.
[static void Multiply(ref Vector4, ref Vector4, out Vector4)](VRageMath.Vector4D.Multiply) Multiplies the components of two vectors by each other.
[static Vector4D Multiply(Vector4D, double)](VRageMath.Vector4D.Multiply) Multiplies a vector by a scalar.
[static void Multiply(ref Vector4D, double, out Vector4D)](VRageMath.Vector4D.Multiply) Multiplies a vector by a scalar value.
[static Vector4D Negate(Vector4D)](VRageMath.Vector4D.Negate) Returns a vector pointing in the opposite direction.
[static void Negate(ref Vector4D, out Vector4D)](VRageMath.Vector4D.Negate) Returns a vector pointing in the opposite direction.
[static Vector4D Normalize(Vector4D)](VRageMath.Vector4D.Normalize) Creates a unit vector from the specified vector.
[static void Normalize(ref Vector4D, out Vector4D)](VRageMath.Vector4D.Normalize) Returns a normalized version of the specified vector.
[static Vector4D PackOrthoMatrix(Vector3D, Vector3, Vector3)](VRageMath.Vector4D.PackOrthoMatrix)
[static Vector4D PackOrthoMatrix(ref MatrixD)](VRageMath.Vector4D.PackOrthoMatrix)
[static Vector4D SmoothStep(Vector4D, Vector4D, double)](VRageMath.Vector4D.SmoothStep) Interpolates between two values using a cubic equation.
[static void SmoothStep(ref Vector4D, ref Vector4D, double, out Vector4D)](VRageMath.Vector4D.SmoothStep) Interpolates between two values using a cubic equation.
[static Vector4 Subtract(Vector4, Vector4)](VRageMath.Vector4D.Subtract) Subtracts a vector from a vector.
[static void Subtract(ref Vector4D, ref Vector4D, out Vector4D)](VRageMath.Vector4D.Subtract) Subtracts a vector from a vector.
[static Vector4D Transform(Vector2, MatrixD)](VRageMath.Vector4D.Transform) Transforms a Vector2 by the given Matrix.
[static void Transform(ref Vector2, ref MatrixD, out Vector4D)](VRageMath.Vector4D.Transform) Transforms a Vector2 by the given Matrix.
[static Vector4D Transform(Vector3D, MatrixD)](VRageMath.Vector4D.Transform) Transforms a Vector3 by the given Matrix.
[static void Transform(ref Vector3D, ref MatrixD, out Vector4D)](VRageMath.Vector4D.Transform) Transforms a Vector3 by the given Matrix.
[static Vector4D Transform(Vector4D, MatrixD)](VRageMath.Vector4D.Transform) Transforms a Vector4 by the specified Matrix.
[static void Transform(ref Vector4D, ref MatrixD, out Vector4D)](VRageMath.Vector4D.Transform) Transforms a Vector4 by the given Matrix.
[static Vector4D Transform(Vector2, Quaternion)](VRageMath.Vector4D.Transform) Transforms a Vector2 by a specified Quaternion into a Vector4.
[static void Transform(ref Vector2, ref Quaternion, out Vector4D)](VRageMath.Vector4D.Transform) Transforms a Vector2 by a specified Quaternion into a Vector4.
[static Vector4D Transform(Vector3D, Quaternion)](VRageMath.Vector4D.Transform) Transforms a Vector3 by a specified Quaternion into a Vector4.
[static void Transform(ref Vector3D, ref Quaternion, out Vector4D)](VRageMath.Vector4D.Transform) Transforms a Vector3 by a specified Quaternion into a Vector4.
[static Vector4D Transform(Vector4D, Quaternion)](VRageMath.Vector4D.Transform) Transforms a Vector4 by a specified Quaternion.
[static void Transform(ref Vector4D, ref Quaternion, out Vector4D)](VRageMath.Vector4D.Transform) Transforms a Vector4 by a specified Quaternion.
[static void Transform(Vector4D[], ref MatrixD, Vector4D[])](VRageMath.Vector4D.Transform) Transforms an array of Vector4s by a specified Matrix.
[static void Transform(Vector4D[], int, ref MatrixD, Vector4D[], int, int)](VRageMath.Vector4D.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(Vector4D[], ref Quaternion, Vector4D[])](VRageMath.Vector4D.Transform) Transforms an array of Vector4s by a specified Quaternion.
[static void Transform(Vector4D[], int, ref Quaternion, Vector4D[], int, int)](VRageMath.Vector4D.Transform) Transforms a specified range in an array of Vector4s by a specified Quaternion into a specified range in a destination array.
[static MatrixD UnpackOrthoMatrix(ref Vector4D)](VRageMath.Vector4D.UnpackOrthoMatrix)
[bool Equals(Vector4)](VRageMath.Vector4D.Equals) Determines whether the specified Object is equal to the Vector4.
[bool Equals(object)](VRageMath.Vector4D.Equals) Returns a value that indicates whether the current instance is equal to a specified object.
[int GetHashCode()](VRageMath.Vector4D.GetHashCode) Gets the hash code of this object.
[double Length()](VRageMath.Vector4D.Length) Calculates the length of the vector.
[double LengthSquared()](VRageMath.Vector4D.LengthSquared) Calculates the length of the vector squared.
[void Normalize()](VRageMath.Vector4D.Normalize) Turns the current vector into a unit vector.
[string ToString()](VRageMath.Vector4D.ToString) Retrieves a string representation of the current object.

Clone this wiki locally