-
Notifications
You must be signed in to change notification settings - Fork 123
VRageMath.Vector4
← Index ← Namespace Index
public struct Vector4: IEquatable<Vector4>
Defines a vector with four components.
Namespace: VRageMath
Assembly: VRage.Math.dll
Implements:
Gets or sets the w-component of the vector.
Gets or sets the x-component of the vector.
Gets or sets the y-component of the vector.
Gets or sets the z-component of the vector.
Vector4(float x, float y, float z, float w)
Vector4(Vector2 value, float z, float w)
Vector4(Vector3 value, float w)
static Vector4 Add(Vector4 value1, Vector4 value2)
Adds two vectors.
static void Add(ref Vector4 value1, ref Vector4 value2, out Vector4 result)
Adds two vectors.
Returns a Vector4 containing the 4D Cartesian coordinates of a point specified in barycentric (areal) coordinates relative to a 4D triangle.
Returns a Vector4 containing the 4D Cartesian coordinates of a point specified in Barycentric (areal) coordinates relative to a 4D triangle.
Performs a Catmull-Rom interpolation using the specified positions.
Performs a Catmull-Rom interpolation using the specified positions.
static Vector4 Clamp(Vector4 value1, Vector4 min, Vector4 max)
Restricts a value to be within a specified range.
static void Clamp(ref Vector4 value1, ref Vector4 min, ref Vector4 max, out Vector4 result)
Restricts a value to be within a specified range.
static float Distance(Vector4 value1, Vector4 value2)
Calculates the distance between two vectors.
static void Distance(ref Vector4 value1, ref Vector4 value2, out float result)
Calculates the distance between two vectors.
static float DistanceSquared(Vector4 value1, Vector4 value2)
Calculates the distance between two vectors squared.
static void DistanceSquared(ref Vector4 value1, ref Vector4 value2, out float result)
Calculates the distance between two vectors squared.
static Vector4 Divide(Vector4 value1, Vector4 value2)
Divides the components of a vector by the components of another vector.
static void Divide(ref Vector4 value1, ref Vector4 value2, out Vector4 result)
Divides the components of a vector by the components of another vector.
static Vector4 Divide(Vector4 value1, float divider)
Divides a vector by a scalar value.
static void Divide(ref Vector4 value1, float divider, out Vector4 result)
Divides a vector by a scalar value.
static float Dot(Vector4 vector1, Vector4 vector2)
Calculates the dot product of two vectors.
static void Dot(ref Vector4 vector1, ref Vector4 vector2, out float result)
Calculates the dot product of two vectors.
Performs a Hermite spline interpolation.
Performs a Hermite spline interpolation.
static Vector4 Lerp(Vector4 value1, Vector4 value2, float amount)
Performs a linear interpolation between two vectors.
static void Lerp(ref Vector4 value1, ref Vector4 value2, float amount, out Vector4 result)
Performs a linear interpolation between two vectors.
static Vector4 Max(Vector4 value1, Vector4 value2)
Returns a vector that contains the highest value from each matching pair of components.
static void Max(ref Vector4 value1, ref Vector4 value2, out Vector4 result)
Returns a vector that contains the highest value from each matching pair of components.
static Vector4 Min(Vector4 value1, Vector4 value2)
Returns a vector that contains the lowest value from each matching pair of components.
static void Min(ref Vector4 value1, ref Vector4 value2, out Vector4 result)
Returns a vector that contains the lowest value from each matching pair of components.
static Vector4 Multiply(Vector4 value1, Vector4 value2)
Multiplies the components of two vectors by each other.
static void Multiply(ref Vector4 value1, ref Vector4 value2, out Vector4 result)
Multiplies the components of two vectors by each other.
static Vector4 Multiply(Vector4 value1, float scaleFactor)
Multiplies a vector by a scalar.
static void Multiply(ref Vector4 value1, float scaleFactor, out Vector4 result)
Multiplies a vector by a scalar value.
static Vector4 Negate(Vector4 value)
Returns a vector pointing in the opposite direction.
static void Negate(ref Vector4 value, out Vector4 result)
Returns a vector pointing in the opposite direction.
static Vector4 Normalize(Vector4 vector)
Creates a unit vector from the specified vector.
static void Normalize(ref Vector4 vector, out Vector4 result)
Returns a normalized version of the specified vector.
static Vector4 PackOrthoMatrix(Vector3 position, Vector3 forward, Vector3 up)
static Vector4 PackOrthoMatrix(ref Matrix matrix)
static Vector4 SmoothStep(Vector4 value1, Vector4 value2, float amount)
Interpolates between two values using a cubic equation.
static void SmoothStep(ref Vector4 value1, ref Vector4 value2, float amount, out Vector4 result)
Interpolates between two values using a cubic equation.
static Vector4 Subtract(Vector4 value1, Vector4 value2)
Subtracts a vector from a vector.
static void Subtract(ref Vector4 value1, ref Vector4 value2, out Vector4 result)
Subtracts a vector from a vector.
static Vector4 Transform(Vector2 position, Matrix matrix)
Transforms a Vector2 by the given Matrix.
static void Transform(ref Vector2 position, ref Matrix matrix, out Vector4 result)
Transforms a Vector2 by the given Matrix.
static Vector4 Transform(Vector3 position, Matrix matrix)
Transforms a Vector3 by the given Matrix.
static void Transform(ref Vector3 position, ref Matrix matrix, out Vector4 result)
Transforms a Vector3 by the given Matrix.
static Vector4 Transform(Vector4 vector, Matrix matrix)
Transforms a Vector4 by the specified Matrix.
static void Transform(ref Vector4 vector, ref Matrix matrix, out Vector4 result)
Transforms a Vector4 by the given Matrix.
static Vector4 Transform(Vector2 value, Quaternion rotation)
Transforms a Vector2 by a specified Quaternion into a Vector4.
static void Transform(ref Vector2 value, ref Quaternion rotation, out Vector4 result)
Transforms a Vector2 by a specified Quaternion into a Vector4.
static Vector4 Transform(Vector3 value, Quaternion rotation)
Transforms a Vector3 by a specified Quaternion into a Vector4.
static void Transform(ref Vector3 value, ref Quaternion rotation, out Vector4 result)
Transforms a Vector3 by a specified Quaternion into a Vector4.
static Vector4 Transform(Vector4 value, Quaternion rotation)
Transforms a Vector4 by a specified Quaternion.
static void Transform(ref Vector4 value, ref Quaternion rotation, out Vector4 result)
Transforms a Vector4 by a specified Quaternion.
static void Transform(Vector4[] sourceArray, ref Matrix matrix, Vector4[] destinationArray)
Transforms an array of Vector4s by a specified Matrix.
Transforms a specified range in an array of Vector4s by a specified Matrix into a specified range in a destination array.
Transforms an array of Vector4s by a specified Quaternion.
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 packed)
static void UnpackOrthoMatrix(ref Vector4 packed, out Matrix matrix)
Determines whether the specified Object is equal to the Vector4.
Returns a value that indicates whether the current instance is equal to a specified object.
Gets the hash code of this object.
Calculates the length of the vector.
Calculates the length of the vector squared.
Turns the current vector into a unit vector.
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!