Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions packages/geometry/src/BezierCurve.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { Point } from './Point';
import { Polygon } from './Polygon';
import { Point, Polygon } from './index';

export enum BezierCurvepPoints {
SOURCE = 0,
Expand Down
4 changes: 1 addition & 3 deletions packages/geometry/src/Polygon.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Point } from './Point';
import * as _ from 'lodash';
import { Matrix } from 'ml-matrix';
import { Point, Rectangle } from './index';

export class Polygon {
protected points: Point[];
Expand Down Expand Up @@ -132,5 +132,3 @@ export class Polygon {
return new Rectangle(new Point(minX, minY), new Point(maxX, minY), new Point(maxX, maxY), new Point(minX, maxY));
}
}

import { Rectangle } from './Rectangle';
3 changes: 1 addition & 2 deletions packages/geometry/src/Rectangle.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { Point } from './Point';
import { Polygon } from './Polygon';
import { Point, Polygon } from './index';

export class Rectangle extends Polygon {
constructor(tl: Point, tr: Point, br: Point, bl: Point);
Expand Down