format
typescript
Vector2.almostZeroclass: Vector2
description
(Read Only) Determines if the current vector object is close to the zero vector.
parameter
| param_name | type | description |
|---|
reture
| type | description |
|---|---|
boolean | Returns true if the absolute sum of the components of the current vector object is less than 1e-5; otherwise, returns false. |
code example
typescript
let v2 = new Vector2(1, 0)
Debug.Log(v2.almostZero); //false