tapspace
Version:
A zoomable user interface lib for web apps
18 lines (16 loc) • 378 B
JavaScript
const fine = require('affineplane')
const box3 = fine.box3
module.exports = (Sphere) => {
return function () {
// @Box:getBoundingSphere()
//
// Get the spherical boundary of the box.
// The sphere center equals the box center.
//
// Return:
// a Sphere
//
const sp = box3.getSphere(this.box)
return new Sphere(this.basis, sp)
}
}