1
0
Fork 0
freesewing/lib/point.ts

14 lines
212 B
TypeScript
Raw Normal View History

2018-07-11 12:45:02 +00:00
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;
}
}