fix(math): correctly validate second point in isLineSegment (#11007)

Co-authored-by: Mark Tolmacs <mark@lazycat.hu>
This commit is contained in:
Kundan
2026-03-24 23:31:08 +05:30
committed by GitHub
parent d6f0f34fe9
commit 1c292e4936
2 changed files with 26 additions and 2 deletions
+1 -1
View File
@@ -40,7 +40,7 @@ export const isLineSegment = <Point extends GlobalPoint | LocalPoint>(
Array.isArray(segment) &&
segment.length === 2 &&
isPoint(segment[0]) &&
isPoint(segment[0]);
isPoint(segment[1]);
/**
* Return the coordinates resulting from rotating the given line about an origin by an angle in radians