Fix:path conflictcheck

Coincident lines are considered as intersecting
jira:STUDIO-14085

Change-Id: I1487e6e2479e2488a3fd55651b8b4fb1bc1f4ced
(cherry picked from commit 2348328a96a8d805c35cae8f03ebaa0869b1313e)
This commit is contained in:
jiangkai.zhao
2025-10-28 15:29:55 +08:00
committed by Noisyfox
parent 69b2b5d86d
commit 6923230495
3 changed files with 18 additions and 2 deletions
+1 -1
View File
@@ -183,7 +183,7 @@ public:
bool clip_with_bbox(const BoundingBox &bbox);
// Extend the line from both sides by an offset.
void extend(double offset);
bool overlap(const Line &line, double &overlap_length) const;
static inline double distance_to_squared(const Point &point, const Point &a, const Point &b) { return line_alg::distance_to_squared(Line{a, b}, Vec<2, coord_t>{point}); }
static double distance_to(const Point &point, const Point &a, const Point &b) { return sqrt(distance_to_squared(point, a, b)); }