Reogranise drawing in main
This commit is contained in:
@@ -152,6 +152,7 @@ circOnLine' !p1 !p2 !c !rad = isJustTrue (fmap (\p -> magV (p -.- c) < rad) y)
|
||||
|
||||
-- this should probably be circOnSeg
|
||||
circOnLine :: Point2 -> Point2 -> Point2 -> Float -> Bool
|
||||
{-# INLINE circOnLine #-}
|
||||
circOnLine !p1 !p2 !c !rad = magV (p1 -.- c) <= rad || magV (p2 -.- c) <= rad
|
||||
|| isJustTrue (fmap (\p -> magV (p -.- c) < rad) y)
|
||||
where
|
||||
|
||||
Reference in New Issue
Block a user