commence physics implementation with mass

This commit is contained in:
nek0 2020-12-27 02:31:10 +01:00
parent 4137101dbc
commit 253e698cc4
1 changed files with 11 additions and 0 deletions

View File

@ -0,0 +1,11 @@
module Classes.Physics.Mass where
-- | This typeclass is a centerpiece of the physics implementation and is used
-- to implement the basic mass properties of a (very simplified) physical body.
class Mass m where
-- | The mass of the object
mass :: m -> Double
-- | The scaling factor for how much this object is affected by gravity.
gravScale :: m -> Double