|
Graphics.FieldTrip.Geometry2 | Stability | experimental | Maintainer | conal@conal.net, andygill@ku.edu |
|
|
|
|
|
Description |
2D geometry
|
|
Synopsis |
|
data Geometry2 | | renderer2 :: Renderer -> Geometry2 | | renderWith2 :: GContext -> Geometry2 -> IO () | | render2 :: Geometry2 -> IO () | | ubox2 :: Geometry2 | | box2 :: (Real s, Floating s, MatrixComponent s) => s -> s -> Geometry2 | | approx2 :: (ErrorBound -> Geometry2) -> Geometry2 | | udisk :: Geometry2 | | polygon :: VertexComponent s => [Vertex2 s] -> Geometry2 | | regularPolygon :: Int -> Geometry2 | | diskWedge :: R -> Geometry2 | | regularPolygonWedge :: forall s. (Ord s, Floating s, VertexComponent s) => s -> Int -> Geometry2 | | utext :: String -> Geometry2 | | utextWidth :: String -> Double | | utextBaseline :: Double | | type Filter2 = Geometry2 -> Geometry2 | | move2 :: (MatrixComponent s, Real s, Floating s) => s -> s -> Filter2 | | move2X :: (MatrixComponent s, Real s, Floating s) => s -> Filter2 | | move2Y :: (MatrixComponent s, Real s, Floating s) => s -> Filter2 | | andFlip2 :: Filter2 |
|
|
Documentation |
|
|
2D geometry
In the Monoid instance, mempty is completely invisible (aka
transparent or empty), and a mappend b places a on top of b.
| Instances | |
|
|
|
Make a geometry from a rendering action. The action must leave graphics
state as it found it.
|
|
|
Render the geometry, given a graphics context. Leaves graphics state unchanged.
|
|
|
Render the geometry with default graphics context. See also renderWith2.
|
|
|
Box2 of unit width and height. See also 'box2.
|
|
|
Box2 of given width and height. See also 'ubox2.
|
|
|
Approximate one geometry by another, given an error bound
|
|
|
The unit disk, approximated as regular n-gons
|
|
|
A polygon
|
|
|
Regular polygon
|
|
|
Portion of a disk
|
|
|
Regular polygon wedge. Oops! only works for frac <= 1/2, since
otherwise the polygon is non-convex.
|
|
Text
|
|
|
The passed string of text centered at the origin with height 1.0
|
|
|
The width of the geometry of utext of that string.
|
|
|
The height of the baseline of geometry created by utext. This can be
used for underlining, for example.
|
|
Geometry2 filters
|
|
|
Geometry2 filter
|
|
|
Simplified interface to translate2
|
|
|
|
|
Specializations of move2
|
|
|
A geometry plus its a rotated-by-pi version.
|
|
Produced by Haddock version 2.4.2 |