Skip to content

Function: areSameVectorsByPrecision() ​

ts
function areSameVectorsByPrecision(
   first: Readonly<Vector>, 
   second: Readonly<Vector>, 
   eps: number): boolean;

Check whether two 3D vectors are equal within a tolerance.

Parameters ​

ParameterTypeDescription
firstReadonly<Vector>First vector.
secondReadonly<Vector>Second vector.
epsnumberMaximum allowed coordinate difference.

Returns ​

boolean

Whether all coordinate differences are less than or equal to eps.