The Vector4.Zero
field represents a 4-dimensional vector where all components (x, y, z, w) are set to zero. This is a static and public field, meaning it can be accessed without instantiating a Vector4
object.
The Vector4.Zero
field represents a 4-dimensional vector where all components (x, y, z, w) are set to zero. This is a static and public field, meaning it can be accessed without instantiating a Vector4
object.
Use Vector4.Zero
when you need a vector with no magnitude or direction, often used as a default value or to reset vectors in calculations.
// Example of using Vector4.Zero Vector4 myVector = Vector4.Zero; // Check if a vector is zero if (myVector == Vector4.Zero) { // Perform some action }