UNPKG

tapspace

Version:

A zoomable user interface lib for web apps

29 lines (25 loc) 526 B
const fine = require('affineplane') const box3 = fine.box3 const Point = require('../Point') module.exports = function (x, y, z) { // @Box:at(x, y[, z]) // @Box:getPoint // // Get a point using the internal coordinates of the box. // // Parameters: // x // a number // y // a number // z // optional number, zero by default. // // Return: // a Point // // Allow undefined z if (!z) { z = 0 } const p = box3.at(this.box, x, y, z) return new Point(this.basis, p) }