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

Geom2d.Distance

Description

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

Synopsis

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

Instances