Costing and feel-related movement fixes
This commit is contained in:
@ -105,6 +105,12 @@ export class Point {
|
||||
lerp(y, Math.floor(this.y), Math.ceil(this.y)),
|
||||
);
|
||||
}
|
||||
|
||||
distance(other: Point) {
|
||||
let dx = other.x - this.x;
|
||||
let dy = other.y - this.y;
|
||||
return Math.sqrt(dx * dx + dy * dy);
|
||||
}
|
||||
}
|
||||
|
||||
export class Size {
|
||||
|
Reference in New Issue
Block a user