1
0
Fork 0

🚧 Working on rendering

This commit is contained in:
joostdecock 2018-07-14 16:04:39 +00:00
parent a1115d94c6
commit 4f39f5e357
10 changed files with 347 additions and 8 deletions

View file

@ -1,12 +1,12 @@
import { round, rad2deg, deg2rad } from './utils';
const PRECISION = 2;
// A poor man's rad2deg()
export class Point {
x: number;
y: number;
constructor(x: number, y: number) {
this.x = round(x);
this.y = round(y);