Skip to content

format

typescript
Vector4.almostZero

class: Vector4

description

(Read Only) Determines if the current vector object is close to the zero vector.

parameter

param_nametypedescription

reture

typedescription
booleanReturns 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