Description
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 and is available for use throughout the application.
Usage
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
// Example of using Vector4.Zero
Vector4 myVector = Vector4.Zero;
// Check if a vector is zero
if (myVector == Vector4.Zero)
{
// Perform some action
}