Add visuals for wrist equipment

This commit is contained in:
2022-05-22 23:23:29 +01:00
parent b83392d441
commit 1c038b79be
8 changed files with 108 additions and 22 deletions
+12
View File
@@ -9,6 +9,8 @@ module ShapePicture
, noShape
, _spShape
, _spPicture
, mirrorSPyz
, mirrorSPxz
) where
import Shape
import Picture
@@ -41,3 +43,13 @@ translateSPz z = bimap (translateSH (V3 0 0 z)) (translate3 (V3 0 0 z))
rotateSP :: Float -> SPic -> SPic
rotateSP a = bimap (rotateSH a) (rotate a)
mirrorSPxz :: SPic -> SPic
mirrorSPxz = bimap (reverse . overPosSH flipy) (mirrorxz)
where
flipy (V3 x y z) = V3 x (negate y) z
mirrorSPyz :: SPic -> SPic
mirrorSPyz = bimap (reverse . overPosSH flipx) (mirroryz)
where
flipx (V3 x y z) = V3 (negate x) y z