MCPcopy
hub / github.com/mrdoob/three.js / compareBox

Function compareBox

test/unit/src/math/Box3.tests.js:21–27  ·  view source on GitHub ↗
( a, b, threshold )

Source from the content-addressed store, hash-verified

19} from '../../utils/math-constants.js';
20
21function compareBox( a, b, threshold ) {
22
23 threshold = threshold || 0.0001;
24 return ( a.min.distanceTo( b.min ) < threshold &&
25 a.max.distanceTo( b.max ) < threshold );
26
27}
28
29export default QUnit.module( 'Maths', () => {
30

Callers 1

Box3.tests.jsFile · 0.85

Calls 1

distanceToMethod · 0.45

Tested by

no test coverage detected