UNPKG

tapspace

Version:

A zoomable user interface lib for web apps

17 lines (16 loc) 308 B
module.exports = (Vector) => { return function () { // @Orientation.getUnitX() // // Get a unit vector along the x-axis of the orientation. // // Return // a Vector // return new Vector(this.basis, { x: this.orient.a, y: this.orient.b, z: 0 }) } }