aboutsummaryrefslogtreecommitdiff
path: root/static/src/vector.ts
diff options
context:
space:
mode:
authorElizabeth Hunt <elizabeth@simponic.xyz>2024-09-07 20:20:07 -0700
committerElizabeth Hunt <elizabeth@simponic.xyz>2024-09-12 17:23:30 -0700
commit8ec7f5368232d59f344e1067e1bad5e48dbcb7ae (patch)
tree1ad2df4dc00773f2307d1525cc80ac7410ea8fba /static/src/vector.ts
parente4e31978bae7e45be57b376415a4b925ac8cbc03 (diff)
downloadkennel.hatecomputers.club-8ec7f5368232d59f344e1067e1bad5e48dbcb7ae.tar.gz
kennel.hatecomputers.club-8ec7f5368232d59f344e1067e1bad5e48dbcb7ae.zip
get "cats" up there
Diffstat (limited to 'static/src/vector.ts')
-rw-r--r--static/src/vector.ts14
1 files changed, 0 insertions, 14 deletions
diff --git a/static/src/vector.ts b/static/src/vector.ts
deleted file mode 100644
index 29e62df..0000000
--- a/static/src/vector.ts
+++ /dev/null
@@ -1,14 +0,0 @@
-export class Vec2 {
- constructor(
- public readonly x: number,
- public readonly y: number,
- ) {}
-
- public distance_to(that: Vec2): number {
- return Math.sqrt((this.x - that.x) ** 2 + (this.y - that.y) ** 2);
- }
-
- public copy(): Vec2 {
- return new Vec2(this.x, this.y);
- }
-}