1
0
Fork 0
freesewing/lib/point.ts
2018-07-11 12:45:02 +00:00

13 lines
212 B
TypeScript

const PRECISION = 2;
export default class Point {
x: number;
y: number;
constructor(x: number, y: number) {
this.x = +x.toFixed(PRECISION);
this.y = +y.toFixed(PRECISION);
return this;
}
}