diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2018-12-08 12:39:18 +0100 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2018-12-08 12:39:18 +0100 |
commit | b3950330e3351437f153c6c1debb3821d6e28864 (patch) | |
tree | 0b381b523045bd59cd679825a11976a45813fc24 /src/math/circle.ts | |
parent | 439dcf391784ea3abb61473c74b9c27fcd9fdc2d (diff) | |
download | rpgedit-b3950330e3351437f153c6c1debb3821d6e28864.tar rpgedit-b3950330e3351437f153c6c1debb3821d6e28864.zip |
Create Electron app
Diffstat (limited to 'src/math/circle.ts')
-rw-r--r-- | src/math/circle.ts | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/src/math/circle.ts b/src/math/circle.ts deleted file mode 100644 index f4e855a..0000000 --- a/src/math/circle.ts +++ /dev/null @@ -1,15 +0,0 @@ -import { Collidable } from './collision'; -import { Movement } from './line'; -import { Point } from './point'; - -import { vec2 } from 'gl-matrix'; - -export class Circle implements Collidable, Point { - private pointCollide = Point.prototype.collide; - - constructor(public readonly p: vec2, public readonly r: number) {} - - public collide(out: vec2, move: Movement, r: number): boolean { - return this.pointCollide(out, move, r + this.r); - } -} |