MCPcopy Create free account
hub / github.com/DavidHDev/react-bits / approxEqual

Function approxEqual

src/tools/shape-magic/computeBridges.js:5–5  ·  view source on GitHub ↗
(a, b, tol = 1)

Source from the content-addressed store, hash-verified

3};
4
5const approxEqual = (a, b, tol = 1) => Math.abs(a - b) <= tol;
6
7export const computeCornerRadii = (shapes, globalRadius, tolerance = 1) => {
8 const result = {};

Callers 2

computeCornerRadiiFunction · 0.85
computeBridgesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected