terrahs-0.7: A library for GIS Programs in Haskell.Source codeContentsIndex
TerraHS.Algebras.Spatial.Points
Contents
The Points class
Description
Module for handling the points
Synopsis
class Num a => Points p a | p -> a where
createPoint :: a -> a -> p
getX :: p -> a
getY :: p -> a
equal :: p -> p -> Bool
The Points class
class Num a => Points p a | p -> a whereSource
Methods
createPoint :: a -> a -> pSource
Create a point from two coordinates
getX :: p -> aSource
Returns the X componente of the coordinate
getY :: p -> aSource
Returns the Y componente of the coordinate
equal :: p -> p -> BoolSource
Check if the two coordinates are equal
show/hide Instances
Produced by Haddock version 2.4.2