🚧 Working on rendering
This commit is contained in:
parent
a1115d94c6
commit
4f39f5e357
10 changed files with 347 additions and 8 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue