More intersection detection functions

This commit is contained in:
Mark Tolmacs 2024-09-30 15:31:02 +02:00
parent b7f504796b
commit 6e67aa3a3c
No known key found for this signature in database
4 changed files with 75 additions and 12 deletions

View file

@ -1,3 +1,4 @@
import { ellipseIntersectsLine } from "./ellipse";
import { point, pointCenter, pointRotateRads } from "./point";
import { segmentIncludesPoint } from "./segment";
import type { GenericPoint, Line, Radians, Segment } from "./types";
@ -93,3 +94,5 @@ export function lineIntersectsSegment<Point extends GenericPoint>(
return candidate;
}
export const lineInterceptsEllipse = ellipseIntersectsLine;