tapspace
Version:
A zoomable user interface lib for web apps
19 lines (17 loc) • 443 B
JavaScript
const point3 = require('affineplane').point3
module.exports = function (newBasis) {
// @Point:transitRaw(newBasis)
//
// Represent the point in another basis.
// Unlike changeBasis, returns a plain object without basis data.
//
// Parameters:
// newBasis
// a Component
//
// Return
// a point3, an object.
//
const tran = this.basis.getTransitionTo(newBasis)
return point3.transitFrom(this.point, tran)
}