fin-hypergrid
Version:
Canvas-based high-performance grid
17 lines (12 loc) • 365 B
JavaScript
;
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;