Skip to content

⬅️ Back to Table of Contents

📄 Sphere.tests.js

📊 Analysis Summary

Metric Count
📦 Imports 9
📊 Variables & Constants 43

📚 Table of Contents

🛠️ File Location:

📂 test/unit/src/math/Sphere.tests.js

📦 Imports

Name Source
Box3 ../../../../src/math/Box3.js
Vector3 ../../../../src/math/Vector3.js
Sphere ../../../../src/math/Sphere.js
Plane ../../../../src/math/Plane.js
Matrix4 ../../../../src/math/Matrix4.js
zero3 ../../utils/math-constants.js
one3 ../../utils/math-constants.js
two3 ../../utils/math-constants.js
eps ../../utils/math-constants.js

Variables & Constants

Name Type Kind Value Exported
a Sphere let/var new Sphere()
a Sphere let/var new Sphere()
b Box3 let/var new Box3()
a Sphere let/var new Sphere()
a Sphere let/var new Sphere()
expectedCenter Vector3 let/var new Vector3( 0.9330126941204071, 0, 0 )
expectedRadius number let/var 1.3676668773461689
optionalCenter Vector3 let/var new Vector3( 1, 1, 1 )
points Vector3[] let/var [ new Vector3( 1, 1, 0 ), new Vector3( 1, 1, 0 ), new Vector3( 1, 1, 0 ), new...
a Sphere let/var new Sphere( one3.clone(), 1 )
a Sphere let/var new Sphere()
a Sphere let/var new Sphere( one3.clone(), 1 )
a Sphere let/var new Sphere( one3.clone(), 1 )
a Sphere let/var new Sphere( one3.clone(), 1 )
a Sphere let/var new Sphere( one3.clone(), 1 )
b Sphere let/var new Sphere( zero3.clone(), 1 )
c Sphere let/var new Sphere( zero3.clone(), 0.25 )
a Sphere let/var new Sphere( zero3, 1 )
b Sphere let/var new Sphere( new Vector3( - 5, - 5, - 5 ), 1 )
box Box3 let/var new Box3( zero3, one3 )
a Sphere let/var new Sphere( zero3.clone(), 1 )
b Plane let/var new Plane( new Vector3( 0, 1, 0 ), 1 )
c Plane let/var new Plane( new Vector3( 0, 1, 0 ), 1.25 )
d Plane let/var new Plane( new Vector3( 0, - 1, 0 ), 1.25 )
a Sphere let/var new Sphere( one3.clone(), 1 )
point Vector3 let/var new Vector3()
a Sphere let/var new Sphere( one3.clone(), 1 )
aabb Box3 let/var new Box3()
a Sphere let/var new Sphere( one3.clone(), 1 )
aabb1 Box3 let/var new Box3()
aabb2 Box3 let/var new Box3()
a Sphere let/var new Sphere( one3.clone(), 1 )
a Sphere let/var new Sphere( zero3.clone(), 1 )
p Vector3 let/var new Vector3( 2, 0, 0 )
a Sphere let/var new Sphere( zero3.clone(), 1 )
b Sphere let/var new Sphere( new Vector3( 2, 0, 0 ), 1 )
c Sphere let/var new Sphere( new Vector3(), 1 )
d Sphere let/var new Sphere( new Vector3( 1, 0, 0 ), 4 )
e Sphere let/var new Sphere( new Vector3(), 1 )
f Sphere let/var new Sphere( new Vector3(), 4 )
a Sphere let/var new Sphere()
b Sphere let/var new Sphere( new Vector3( 1, 0, 0 ) )
c Sphere let/var new Sphere( new Vector3( 1, 0, 0 ), 1.0 )