tapspace
Version:
A zoomable user interface lib for web apps
19 lines (17 loc) • 427 B
JavaScript
const fine = require('affineplane')
const box2 = fine.box2
module.exports = (Circle) => {
return function () {
// @Box:getBoundingCircle()
//
// Get the circle boundary of the rectangular box front.
// The circle center equals the box front center.
//
// Return:
// a Circle
//
const c = box2.getCircle(this.box)
c.z = this.box.z // patch
return new Circle(this.basis, c)
}
}