hgeometry-0.6.0.0: Geometric Algorithms, Data structures, and Data types.

Safe HaskellNone
LanguageHaskell2010

Algorithms.Geometry.SmallestEnclosingBall.Types

Synopsis

Documentation

data TwoOrThree a Source #

List of two or three elements

Constructors

Two !a !a 
Three !a !a !a 

Instances

Functor TwoOrThree Source # 

Methods

fmap :: (a -> b) -> TwoOrThree a -> TwoOrThree b #

(<$) :: a -> TwoOrThree b -> TwoOrThree a #

Foldable TwoOrThree Source # 

Methods

fold :: Monoid m => TwoOrThree m -> m #

foldMap :: Monoid m => (a -> m) -> TwoOrThree a -> m #

foldr :: (a -> b -> b) -> b -> TwoOrThree a -> b #

foldr' :: (a -> b -> b) -> b -> TwoOrThree a -> b #

foldl :: (b -> a -> b) -> b -> TwoOrThree a -> b #

foldl' :: (b -> a -> b) -> b -> TwoOrThree a -> b #

foldr1 :: (a -> a -> a) -> TwoOrThree a -> a #

foldl1 :: (a -> a -> a) -> TwoOrThree a -> a #

toList :: TwoOrThree a -> [a] #

null :: TwoOrThree a -> Bool #

length :: TwoOrThree a -> Int #

elem :: Eq a => a -> TwoOrThree a -> Bool #

maximum :: Ord a => TwoOrThree a -> a #

minimum :: Ord a => TwoOrThree a -> a #

sum :: Num a => TwoOrThree a -> a #

product :: Num a => TwoOrThree a -> a #

Eq a => Eq (TwoOrThree a) Source # 

Methods

(==) :: TwoOrThree a -> TwoOrThree a -> Bool #

(/=) :: TwoOrThree a -> TwoOrThree a -> Bool #

Ord a => Ord (TwoOrThree a) Source # 
Read a => Read (TwoOrThree a) Source # 
Show a => Show (TwoOrThree a) Source # 

data DiskResult p r Source #

The result of a smallest enclosing disk computation: The smallest ball and the points defining it

Constructors

DiskResult 

enclosingDisk :: forall p r. Lens' (DiskResult p r) (Disk () r) Source #

definingPoints :: forall p r p. Lens (DiskResult p r) (DiskResult p r) (TwoOrThree ((:+) (Point 2 r) p)) (TwoOrThree ((:+) (Point 2 r) p)) Source #