feat(scum): add map trajectory projection
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
import { describe, expect, it } from "vitest";
|
||||
|
||||
import { trajectoryPath } from "./ScumMapTrajectoryPanel";
|
||||
|
||||
describe("trajectoryPath", () => {
|
||||
it("projects normalized map points into a stable SVG path", () => {
|
||||
expect(trajectoryPath([{ mapX: 0, mapY: 0 }, { mapX: 500, mapY: 250 }, { mapX: 1000, mapY: 1000 }])).toBe("M0,1000 L500,750 L1000,0");
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user