Vector4 Structure
Represents a vector with four single-precision floating-point values.
Assembly: System.Numerics (in System.Numerics.dll)
| Name | Description | |
|---|---|---|
![]() | Vector4(Single) | Creates a new Vector4 object whose four elements have the same value. |
![]() | Vector4(Single, Single, Single, Single) | Creates a vector whose elements have the specified values. |
![]() | Vector4(Vector2, Single, Single) | Creates a new Vector4 object from the specified Vector2 object and a Z and a W component. |
![]() | Vector4(Vector3, Single) | Constructs a new Vector4 object from the specified Vector3 object and a W component. |
| Name | Description | |
|---|---|---|
![]() ![]() | Abs(Vector4) | Returns a vector whose elements are the absolute values of each of the specified vector's elements. |
![]() ![]() | Add(Vector4, Vector4) | Adds two vectors together. |
![]() ![]() | Clamp(Vector4, Vector4, Vector4) | Restricts a vector between a minimum and a maximum value. |
![]() | CopyTo(array<Single>^) | Copies the elements of the vector to a specified array. |
![]() | CopyTo(array<Single>^, Int32) | Copies the elements of the vector to a specified array starting at a specified index position. |
![]() ![]() | Distance(Vector4, Vector4) | Computes the Euclidean distance between the two given points. |
![]() ![]() | DistanceSquared(Vector4, Vector4) | Returns the Euclidean distance squared between two specified points. |
![]() ![]() | Divide(Vector4, Single) | Divides the specified vector by a specified scalar value. |
![]() ![]() | Divide(Vector4, Vector4) | Divides the first vector by the second. |
![]() ![]() | Dot(Vector4, Vector4) | Returns the dot product of two vectors. |
![]() | Equals(Object^) | Returns a value that indicates whether this instance and a specified object are equal.(Overrides ValueType::Equals(Object^).) |
![]() | Equals(Vector4) | Returns a value that indicates whether this instance and another vector are equal. |
![]() | GetHashCode() | Returns the hash code for this instance. (Overrides ValueType::GetHashCode().) |
![]() | GetType() | |
![]() | Length() | Returns the length of this vector object. |
![]() | LengthSquared() | Returns the length of the vector squared. |
![]() ![]() | Lerp(Vector4, Vector4, Single) | Performs a linear interpolation between two vectors based on the given weighting. |
![]() ![]() | Max(Vector4, Vector4) | Returns a vector whose elements are the maximum of each of the pairs of elements in two specified vectors. |
![]() ![]() | Min(Vector4, Vector4) | Returns a vector whose elements are the minimum of each of the pairs of elements in two specified vectors. |
![]() ![]() | Multiply(Single, Vector4) | Multiplies a scalar value by a specified vector. |
![]() ![]() | Multiply(Vector4, Single) | Multiplies a vector by a specified scalar. |
![]() ![]() | Multiply(Vector4, Vector4) | Multiplies two vectors together. |
![]() ![]() | Negate(Vector4) | Negates a specified vector. |
![]() ![]() | Normalize(Vector4) | Returns a vector with the same direction as the specified vector, but with a length of one. |
![]() ![]() | SquareRoot(Vector4) | Returns a vector whose elements are the square root of each of a specified vector's elements. |
![]() ![]() | Subtract(Vector4, Vector4) | Subtracts the second vector from the first. |
![]() | ToString() | Returns the string representation of the current instance using default formatting. (Overrides ValueType::ToString().) |
![]() | ToString(String^) | Returns the string representation of the current instance using the specified format string to format individual elements. |
![]() | ToString(String^, IFormatProvider^) | Returns the string representation of the current instance using the specified format string to format individual elements and the specified format provider to define culture-specific formatting. |
![]() ![]() | Transform(Vector2, Matrix4x4) | Transforms a two-dimensional vector by a specified 4x4 matrix. |
![]() ![]() | Transform(Vector2, Quaternion) | Transforms a two-dimensional vector by the specified Quaternion rotation value. |
![]() ![]() | Transform(Vector3, Matrix4x4) | Transforms a three-dimensional vector by a specified 4x4 matrix. |
![]() ![]() | Transform(Vector3, Quaternion) | Transforms a three-dimensional vector by the specified Quaternion rotation value. |
![]() ![]() | Transform(Vector4, Matrix4x4) | Transforms a four-dimensional vector by a specified 4x4 matrix. |
![]() ![]() | Transform(Vector4, Quaternion) | Transforms a four-dimensional vector by the specified Quaternion rotation value. |
| Name | Description | |
|---|---|---|
![]() ![]() | Addition(Vector4, Vector4) | Adds two vectors together. |
![]() ![]() | Division(Vector4, Single) | Divides the specified vector by a specified scalar value. |
![]() ![]() | Division(Vector4, Vector4) | Divides the first vector by the second. |
![]() ![]() | Equality(Vector4, Vector4) | Returns a value that indicates whether each pair of elements in two specified vectors is equal. |
![]() ![]() | Inequality(Vector4, Vector4) | Returns a value that indicates whether two specified vectors are not equal. |
![]() ![]() | Multiply(Single, Vector4) | Multiples the scalar value by the specified vector. |
![]() ![]() | Multiply(Vector4, Single) | Multiples the specified vector by the specified scalar value. |
![]() ![]() | Multiply(Vector4, Vector4) | Multiplies two vectors together. |
![]() ![]() | Subtraction(Vector4, Vector4) | Subtracts the second vector from the first. |
![]() ![]() | UnaryNegation(Vector4) | Negates the specified vector. |
The Vector4 structure provides support for hardware acceleration.
Available since 10
.NET Framework
Available since 4.6
Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.




