Fix bug in intersectCircSeg
This commit is contained in:
@@ -259,7 +259,7 @@ inSegArea a b c = param >= 0 && param <= dotV (b -.- a) (b -.- a)
|
||||
intersectCircSeg :: Point2 -> Float -> Point2 -> Point2 -> [Point2]
|
||||
intersectCircSeg c r a b
|
||||
| y < 0 = []
|
||||
| otherwise = nub $ filter (inSegArea a b) [ d -.- v, d +.+ c ]
|
||||
| otherwise = nub $ filter (inSegArea a b) [ d -.- v, d +.+ v ]
|
||||
where
|
||||
d = closestPointOnLine a b c
|
||||
x = dist d c
|
||||
|
||||
Reference in New Issue
Block a user