aboutsummaryrefslogtreecommitdiff
path: root/Spear/Math/Vector/Vector3.hs
diff options
context:
space:
mode:
Diffstat (limited to 'Spear/Math/Vector/Vector3.hs')
-rw-r--r--Spear/Math/Vector/Vector3.hs3
1 files changed, 3 insertions, 0 deletions
diff --git a/Spear/Math/Vector/Vector3.hs b/Spear/Math/Vector/Vector3.hs
index db5dc45..6ad4fe1 100644
--- a/Spear/Math/Vector/Vector3.hs
+++ b/Spear/Math/Vector/Vector3.hs
@@ -163,6 +163,9 @@ instance Vector Vector3 where
163 n = if n' == 0 then 1 else n' 163 n = if n' == 0 then 1 else n'
164 in ((1.0::Float) / n) * v 164 in ((1.0::Float) / n) * v
165 165
166 {-# INLINABLE scale #-}
167 scale s (Vector3 x y z) = Vector3 (s*x) (s*y) (s*z)
168
166 169
167sizeFloat = sizeOf (undefined :: CFloat) 170sizeFloat = sizeOf (undefined :: CFloat)
168 171