GeomAlg-0.2.3: Library of geometric algorithms in HaskellSource codeContentsIndex
GeomAlg.Circle
Description
A circle.
Synopsis
data (Point p, Num a) => Circle p a = Circle {
center :: p a
radius :: a
}
type Circle2 a = Circle Point2 a
type Circle3 a = Circle Point3 a
circleFrom3Points :: Fractional a => P2 a -> P2 a -> P2 a -> Maybe (Circle2 a)
Documentation
data (Point p, Num a) => Circle p a Source
A circle is defined by its origin and the square of its radius.
Constructors
Circle
center :: p a
radius :: a
show/hide Instances
type Circle2 a = Circle Point2 aSource
type Circle3 a = Circle Point3 aSource
circleFrom3Points :: Fractional a => P2 a -> P2 a -> P2 a -> Maybe (Circle2 a)Source
See [CGA-FAW, 1.04]
Produced by Haddock version 2.4.2