Calculate whether two vectors are approximately equal.
First vector for comparison.
Second vector for comparison.
The comparison threshold. Defaults to APPROX_THRESHOLD.
APPROX_THRESHOLD
approx({ x: 0.1 + 0.2, y: 0 }, { x: 0.3, y: 0 }); // -> true Copy
approx({ x: 0.1 + 0.2, y: 0 }, { x: 0.3, y: 0 }); // -> true
Calculate whether two vectors are approximately equal.