Algebras.Base.Operations
Synopsis
class Set a where
 union :: [a] -> [a] -> [a] intersection :: [a] -> [a] -> [a] difference :: [a] -> [a] -> [a]
class Topology a b => TopologyOps a b where
 intersects :: a -> b -> Bool touches :: a -> b -> Bool crosses :: a -> b -> Bool disjoint :: a -> b -> Bool within :: a -> b -> Bool equals :: a -> b -> Bool overlaps :: a -> b -> Bool coveredby :: a -> b -> Bool contains :: a -> b -> Bool containedBy :: b -> a -> Bool
class TeRelations a b => Relations a b where
 relation :: a -> b -> TeSpatialRelation
centroid :: Centroid a => a -> TePoint
distance :: TePoint -> TePoint -> Double
llength :: TeLine2D -> Double
area :: TePolygon -> Double
Documentation
 class Set a where Source
Methods
 union :: [a] -> [a] -> [a] Source
 intersection :: [a] -> [a] -> [a] Source
 difference :: [a] -> [a] -> [a] Source
Instances
 Set TePolygon
 class Topology a b => TopologyOps a b where Source
Methods
 intersects :: a -> b -> Bool Source
 touches :: a -> b -> Bool Source
 crosses :: a -> b -> Bool Source
 disjoint :: a -> b -> Bool Source
 within :: a -> b -> Bool Source
 equals :: a -> b -> Bool Source
 overlaps :: a -> b -> Bool Source
 coveredby :: a -> b -> Bool Source
 contains :: a -> b -> Bool Source
 containedBy :: b -> a -> Bool Source
Instances
 TopologyOps TePoint TePoint TopologyOps TePoint TeCell TopologyOps TePoint TeCell TopologyOps TePoint TeLine2D TopologyOps TePoint TeLine2D TopologyOps TePoint TePolygon TopologyOps TePoint TePolygon TopologyOps TeCell TePoint TopologyOps TeCell TePoint TopologyOps TeCell TeCell TopologyOps TeCell TeLine2D TopologyOps TeCell TeLine2D TopologyOps TeCell TePolygon TopologyOps TeCell TePolygon TopologyOps TeLine2D TeCell TopologyOps TeLine2D TeCell TopologyOps TeLine2D TeLine2D TopologyOps TeLine2D TePolygon TopologyOps TeLine2D TePolygon TopologyOps TePolygon TeCell TopologyOps TePolygon TeCell TopologyOps TePolygon TePolygon TopologyOps TeGeometry TeGeometry
 class TeRelations a b => Relations a b where Source
Methods
 relation :: a -> b -> TeSpatialRelation Source
Instances
 Relations TePoint TeLine2D Relations TePoint TeLine2D Relations TePoint TePolygon Relations TePoint TePolygon Relations TeLine2D TePolygon Relations TeLine2D TePolygon Relations TePolygon TePolygon
 centroid :: Centroid a => a -> TePoint Source
 distance :: TePoint -> TePoint -> Double Source
 llength :: TeLine2D -> Double Source
Returns the length of a Line 2D.
 area :: TePolygon -> Double Source
Returns the area of a TePolygon