Add more rooms

This commit is contained in:
2022-06-15 14:05:59 +01:00
parent 29e1ee14a1
commit e30f7a0585
5 changed files with 39 additions and 16 deletions
+3
View File
@@ -90,6 +90,9 @@ rotateV r (V2 x y) = V2
(x * cos r - y * sin r)
(x * sin r + y * cos r)
{-# INLINE rotateV #-}
rotateVAround :: Point2 -> Float -> Point2 -> Point2
rotateVAround p r q = rotateV r (q -.- p) +.+ p
{-# INLINE rotateVAround #-}
-- | Convert degrees to radians
degToRad :: Float -> Float
degToRad d = d * pi / 180