⬅️ Back to Table of Contents
📄 Spherical.tests.js
📊 Analysis Summary
Metric |
Count |
📦 Imports |
3 |
📊 Variables & Constants |
23 |
📚 Table of Contents
🛠️ File Location:
📂 test/unit/src/math/Spherical.tests.js
📦 Imports
Name |
Source |
Spherical |
../../../../src/math/Spherical.js |
Vector3 |
../../../../src/math/Vector3.js |
eps |
../../utils/math-constants.js |
Variables & Constants
Name |
Type |
Kind |
Value |
Exported |
a |
Spherical |
let/var |
new Spherical() |
✗ |
radius |
10 |
let/var |
10.0 |
✗ |
theta |
number |
let/var |
Math.sqrt( Math.PI ) * phi |
✗ |
a |
Spherical |
let/var |
new Spherical() |
✗ |
radius |
10 |
let/var |
10.0 |
✗ |
theta |
number |
let/var |
Math.sqrt( Math.PI ) * phi |
✗ |
radius |
10 |
let/var |
10.0 |
✗ |
theta |
number |
let/var |
Math.sqrt( Math.PI ) * phi |
✗ |
a |
Spherical |
let/var |
new Spherical( radius, phi, theta ) |
✗ |
radius |
10 |
let/var |
10.0 |
✗ |
theta |
number |
let/var |
Math.sqrt( Math.PI ) * phi |
✗ |
a |
Spherical |
let/var |
new Spherical( radius, phi, theta ) |
✗ |
EPS |
0.000001 |
let/var |
0.000001 |
✗ |
tooLow |
0 |
let/var |
0.0 |
✗ |
tooHigh |
number |
let/var |
Math.PI |
✗ |
justRight |
1.5 |
let/var |
1.5 |
✗ |
a |
Spherical |
let/var |
new Spherical( 1, tooLow, 0 ) |
✗ |
a |
Spherical |
let/var |
new Spherical( 1, 1, 1 ) |
✗ |
b |
Vector3 |
let/var |
new Vector3( 0, 0, 0 ) |
✗ |
c |
Vector3 |
let/var |
new Vector3( Math.PI, 1, - Math.PI ) |
✗ |
expected |
Spherical |
let/var |
new Spherical( 4.554032147688322, 1.3494066171539107, 2.356194490192345 ) |
✗ |
a |
Spherical |
let/var |
new Spherical( 1, 1, 1 ) |
✗ |
expected |
Spherical |
let/var |
new Spherical( 4.554032147688322, 1.3494066171539107, 2.356194490192345 ) |
✗ |