Home > decentraland-ecs > Vector3 > equalsWithEpsilon
Returns true if the current Vector3 and the given vector coordinates are distant less than epsilon
Signature:
equalsWithEpsilon(otherVector: ReadOnlyVector3, epsilon?: number): boolean;
Returns: boolean
true if both vectors are distant less than epsilon
Parameter | Type | Description |
---|---|---|
otherVector |
ReadOnlyVector3 |
defines the second operand |
epsilon |
number |
defines the minimal distance to define values as equals |