Add automatic girder light placement for rectangular rooms

This commit is contained in:
2022-03-19 08:34:31 +00:00
parent c4a8912441
commit ce660309c5
6 changed files with 60 additions and 33 deletions
+3 -11
View File
@@ -111,13 +111,12 @@ girderV h d w x y = mconcat $
evenDouble (a:_:xs) = a:a:evenDouble xs
evenDouble xs = xs
girderCol
:: Color
-> Float -- ^ height
girder
:: Float -- ^ height
-> Float -- ^ distance between cross bars
-> Float -- ^ width
-> Point2 -> Point2 -> Shape
girderCol col h d w x y = colorSH col $ mconcat $
girder h d w x y = mconcat $
[ thinHighBar h xt yt
, thinHighBar h xb yb
]
@@ -131,13 +130,6 @@ girderCol col h d w x y = colorSH col $ mconcat $
ps = divideLineExact d xb yb
qs = divideLineExact d xt yt
girder
:: Float -- ^ height
-> Float -- ^ distance between cross bars
-> Float -- ^ width
-> Point2 -> Point2 -> Shape
girder = girderCol orange
robotArm :: Shape
robotArm = undefined