Deal with angles measured in degrees or radians.
Names are kept deliberately different from the standard prelude to avoid name clashes.
- newtype Radians x = Radians x
- newtype Degrees x = Degrees x
- degrees :: Floating x => Radians x -> Degrees x
- radians :: Floating x => Degrees x -> Radians x
- class Angle a where
An angle in radians.
An angle in degrees.
Type-class for angles.