From e69620b34f57c9c91ef22475e750d823631b08f4 Mon Sep 17 00:00:00 2001 From: 3gg <3gg@shellblade.net> Date: Tue, 20 Aug 2024 19:33:33 -0700 Subject: Fix docstrings. --- Spear/Math/Spatial.hs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Spear/Math/Spatial.hs b/Spear/Math/Spatial.hs index bfab6c2..b6a3ede 100644 --- a/Spear/Math/Spatial.hs +++ b/Spear/Math/Spatial.hs @@ -88,22 +88,22 @@ class (Positional a v, Rotational a v r) => Spatial a v r t | a -> t where move :: Positional a v => Float -> (a -> v) -> a -> a move delta axis a = translate (axis a * delta) a --- | Move the spatial upwards. +-- | Move the spatial along its right axis. moveRight delta = move delta right --- | Move the spatial downwards. +-- | Move the spatial along its left axis. moveLeft delta = moveRight (-delta) --- | Move the spatial upwards. +-- | Move the spatial along its up axis. moveUp delta = move delta up --- | Move the spatial downwards. +-- | Move the spatial along its down axis. moveDown delta = moveUp (-delta) --- | Move the spatial forwards. +-- | Move the spatial along its forward axis. moveFwd delta = move delta forward --- | Move the spatial backwards. +-- | Move the spatial along its backward axis. moveBack delta = moveFwd (-delta) -- | Make the spatial look at the given point. -- cgit v1.2.3