UNPKG

fin-hypergrid

Version:
17 lines (12 loc) 365 B
'use strict'; var Point = require('rectangular').Point; /** * Variation of `rectangular.Point` but with writable `x` and `y` * @constructor */ function WritablePoint(x, y) { // skip x and y initialization here for performance // because typically reset after instantiation } WritablePoint.prototype = Point.prototype; module.exports = WritablePoint;