bool IsZeroLength { get; set; }

robot_2Generated
code_blocksInput

Description

The IsZeroLength property of the Vector2Int struct indicates whether the length of the vector is zero. This property is useful for quickly checking if a vector is effectively a zero vector, meaning both its x and y components are zero.

Usage

To use the IsZeroLength property, simply access it on an instance of Vector2Int. It returns a bool indicating whether the vector's length is zero.

Example

Vector2Int vector = new Vector2Int(0, 0);
bool isZero = vector.IsZeroLength;
// isZero will be true because both x and y components are zero.