Start work on crafting/combinations
This commit is contained in:
@@ -97,7 +97,7 @@ expandPolyBy x ps = map f ps
|
||||
expandPolyByFixed :: Float -> [Point2] -> [Point2]
|
||||
expandPolyByFixed x ps = map f ps
|
||||
where
|
||||
f p = p +.+ x *.* safeNormalizeV (p -.- centroid ps)
|
||||
f p = p +.+ x *.* squashNormalizeV (p -.- centroid ps)
|
||||
-- | Given a value and a poly, pushes points out by a fixed amount along an
|
||||
-- angle determined by the corner, i.e. by the two other neighbour points
|
||||
expandPolyCorners :: Float -> [Point2] -> [Point2]
|
||||
|
||||
Reference in New Issue
Block a user