Vector4 Zero

book_4_sparkGenerated
code_blocksInput

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.

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
}