summaryrefslogtreecommitdiffstats
path: root/src/math/point.ts
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2018-11-08 21:39:05 +0100
committerMatthias Schiffer <mschiffer@universe-factory.net>2018-11-08 21:39:05 +0100
commit40339947d1a2407a6be95fad58215cdaf7d4c2c9 (patch)
tree94309e99ebc1816e1594e1776985d83fec4941cb /src/math/point.ts
parentc87d044687bdf48b53ed24491d639760cf195a43 (diff)
downloadrpgedit-40339947d1a2407a6be95fad58215cdaf7d4c2c9.tar
rpgedit-40339947d1a2407a6be95fad58215cdaf7d4c2c9.zip
math: rename Movement.{p1,p2} to {src,dest}
Diffstat (limited to 'src/math/point.ts')
-rw-r--r--src/math/point.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/math/point.ts b/src/math/point.ts
index 23a0f84..0865b8f 100644
--- a/src/math/point.ts
+++ b/src/math/point.ts
@@ -26,13 +26,13 @@ export class Point implements Collidable {
const refMove = move.translate(tr);
- if (vec2.sqrDist(this.p, move.p1) > r * r && !refMove.passes(this.p))
+ if (vec2.sqrDist(this.p, move.src) > r * r && !refMove.passes(this.p))
return false;
normal(t, t);
const tang = new Line(this.p, t);
- tang.projectPoint(out, refMove.p2);
+ tang.projectPoint(out, refMove.dest);
vec2.sub(out, out, tr);
return true;