geodetic-0.1.0: Geodetic calculations

Safe HaskellNone

Data.Geo.Geodetic.Sphere

Description

A sphere with a radius in metres.

Synopsis

Documentation

data Sphere Source

Instances

Eq Sphere 
Ord Sphere 
Show Sphere

A show instance that prints to 4 decimal places. This is to take floating-point rounding errors into account.

HasSphere Sphere 

class HasSphere t whereSource

Instances

nSphere :: Iso' Double SphereSource

An isomorphism on sphere to a double.

>>> 7 ^. nSphere
Sphere 7.0000
>>> 0 ^. nSphere
Sphere 0.0000
>>> (-7) ^. nSphere
Sphere -7.0000