The Vector4 struct represents a four-dimensional vector or point, commonly used in mathematical computations and graphics programming. It provides various methods and properties to manipulate and interact with 4D vectors.
The Vector4 struct represents a four-dimensional vector or point, commonly used in mathematical computations and graphics programming. It provides various methods and properties to manipulate and interact with 4D vectors.
Member Name | Summary |
---|---|
Zero | A 4D vector with all components set to 0. |
One | A 4D vector with all components set to 1. |
Lerp | Linearly interpolates between two vectors. |
Parse | Converts a string representation of a vector to its Vector4 equivalent. |
TryParse | Tries to convert a string representation of a vector to its Vector4 equivalent. |
Member Name | Summary |
---|---|
x | The X component of this Vector. |
y | The Y component of this Vector. |
z | The Z component of this Vector. |
w | The W component of this Vector. |
Length | The length of this vector object. |
LengthSquared | The squared length of this vector object. |
IsNearZeroLength | Whether length of this vector is nearly zero. |
LerpTo | Interpolates this vector towards a target vector. |