diff options
| author | Josh Kingsley <josh@joshkingsley.me> | 2025-11-23 19:27:57 +0200 |
|---|---|---|
| committer | Josh Kingsley <josh@joshkingsley.me> | 2025-11-23 19:27:57 +0200 |
| commit | 602145c956bb594ca0d0e10601cc4ad1a71cf70d (patch) | |
| tree | d9f9980bd2054cff5819d01379f5c1c55f8eb66d /web/src/math/Coord.ts | |
| parent | c2a6efb1b761014a90d90373cad47a14054af40b (diff) | |
feat: integrate web and doc packages
Diffstat (limited to 'web/src/math/Coord.ts')
| -rw-r--r-- | web/src/math/Coord.ts | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/web/src/math/Coord.ts b/web/src/math/Coord.ts deleted file mode 100644 index db7ee6d..0000000 --- a/web/src/math/Coord.ts +++ /dev/null @@ -1,23 +0,0 @@ -/** A coord on a grid whose origin is in the top left. */ -export default class Coord { - private readonly _x: number; - private readonly _y: number; - - constructor(x: number, y: number) { - this._x = x; - this._y = y; - } - - get x(): number { - return this._x; - } - - get y(): number { - return this._y; - } - - /** Get the squared distance of this point from the origin. */ - squaredDistanceFromOrigin(): number { - return this._x * this._x + this._y * this._y; - } -} |
