geom2d-0.2.2: package for geometry in euklidean 2d space

Safe HaskellNone
LanguageHaskell2010

Geom2d.Distance

Description

This module provides a type class to modell distance between geometric objects.

Synopsis

Documentation

class Distance p q where Source

The Distance between objects that have no volume, like points, should satisfy the triangle inequality.

Methods

distance :: (Ord a, Floating a) => p a -> q a -> a Source