Arc tests

This commit is contained in:
Mark Tolmacs 2024-09-25 14:22:32 +02:00
parent f79fb899fc
commit 3fe73e79a6
No known key found for this signature in database
9 changed files with 80 additions and 76 deletions

View file

@ -1,4 +1,3 @@
import type { Radians } from "../math";
import { point, radians } from "../math";
import {
COLOR_PALETTE,

View file

@ -136,12 +136,7 @@ const getElementLineSegments = (
).map((point) => pointRotateRads(point, center, element.angle));
if (element.type === "diamond") {
return [
segment(n, w),
segment(n, e),
segment(s, w),
segment(s, e),
];
return [segment(n, w), segment(n, e), segment(s, w), segment(s, e)];
}
if (element.type === "ellipse") {