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
| Parameter | Type | Description |
|---|---|---|
first | Readonly<Vector> | First vector. |
second | Readonly<Vector> | Second vector. |
eps | number | Maximum allowed coordinate difference. |
Returns
boolean
Whether all coordinate differences are less than or equal to eps.