Fix bug determining max radius of convex polys, fixes bugs in room positioning
This commit is contained in:
@@ -27,7 +27,7 @@ pointsToPoly :: [Point2] -> ConvexPoly
|
||||
pointsToPoly xs = ConvexPoly
|
||||
{ _cpPoints = xs
|
||||
, _cpCen = cen
|
||||
, _cpRad = minimum $ map (dist cen) xs
|
||||
, _cpRad = maximum $ map (dist cen) xs
|
||||
}
|
||||
where
|
||||
cen = centroid xs
|
||||
|
||||
Reference in New Issue
Block a user