303adastra / StellarCartography

An experimental astronomy library, written in Pharo
MIT License
3 stars 3 forks source link

define SCDistance as subclass of SCQuantity #15

Open capsulecorplab opened 3 years ago

capsulecorplab commented 3 years ago

SCDistance should be a subclass of SCQuantity that can be created via unary message to a Number, e.g., 2 meters or via arithmetic oprations to an SCQuantity object whose result has units exclusively in meters