Refactor shapes

This commit is contained in:
schmelczerandras 2020-08-16 10:24:12 +02:00
commit 006ab3c4e6

View file

@ -0,0 +1,12 @@
import { BoundingBox } from './bounding-box';
import { vec2 } from 'gl-matrix';
export interface IShape {
readonly isInverted: boolean;
readonly boundingBox: BoundingBox;
distance(target: vec2): number;
normal(from: vec2): vec2;
clone(): IShape;
}