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

Algorithms.Geometry.SmallestEnclosingBall.Types

Description

Types to represent the smallest enclosing disk of a set of points in $$\mathbb{R}^2$$

Synopsis

Documentation

data TwoOrThree a Source #

List of two or three elements

Constructors

 Two !a !a Three !a !a !a
Instances
 Source # Instance details Methodsfmap :: (a -> b) -> TwoOrThree a -> TwoOrThree b #(<\$) :: a -> TwoOrThree b -> TwoOrThree a # Source # Instance details Methodsfold :: 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 # Instance details Methods(==) :: TwoOrThree a -> TwoOrThree a -> Bool #(/=) :: TwoOrThree a -> TwoOrThree a -> Bool # Ord a => Ord (TwoOrThree a) Source # Instance details Methodscompare :: TwoOrThree a -> TwoOrThree a -> Ordering #(<) :: TwoOrThree a -> TwoOrThree a -> Bool #(<=) :: TwoOrThree a -> TwoOrThree a -> Bool #(>) :: TwoOrThree a -> TwoOrThree a -> Bool #(>=) :: TwoOrThree a -> TwoOrThree a -> Bool #max :: TwoOrThree a -> TwoOrThree a -> TwoOrThree a #min :: TwoOrThree a -> TwoOrThree a -> TwoOrThree a # Read a => Read (TwoOrThree a) Source # Instance details MethodsreadsPrec :: Int -> ReadS (TwoOrThree a) # Show a => Show (TwoOrThree a) Source # Instance details MethodsshowsPrec :: Int -> TwoOrThree a -> ShowS #show :: TwoOrThree a -> String #showList :: [TwoOrThree a] -> ShowS #

data DiskResult p r Source #

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

Constructors

 DiskResult Fields_enclosingDisk :: Disk () r _definingPoints :: TwoOrThree (Point 2 r :+ p)

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 #