format
typescript
Vector4.almostZeroclass: Vector4
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 v4 = new Vector4(-1, -2, -3, -4);
Debug.Log(v4.almostZero); //false