isZero method

bool isZero()

Whether the Vector2 is the zero vector or not

Implementation

bool isZero() => x == 0 && y == 0;