Files
Tessellate/src/point.js
2016-02-20 20:23:01 -05:00

16 lines
262 B
JavaScript

export default class Point {
constructor(newX, newY) {
this.x = newX;
this.y = newY;
}
getX() { return this.x; }
getY() { return this.y; }
setX(newX) { this.x = newX; }
setY(newY) { this.y = newY; }
getPoint() { return {x: this.x, y: this.y}; }
}