Hoogle Search
Within LTS Haskell 24.39 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
PolyRegular :: Int -> n -> PolyType ndiagrams-lib Diagrams.TwoD A regular polygon with the given number of sides (first argument) and the given radius (second argument).
PolySides :: [Angle n] -> [n] -> PolyType ndiagrams-lib Diagrams.TwoD A polygon determined by the distance between successive vertices and the external angles formed by each three successive vertices. In other words, a polygon specified by "turtle graphics": go straight ahead x1 units; turn by external angle a1; go straight ahead x2 units; turn by external angle a2; etc. The polygon will be centered at the centroid of its vertices.
- The first argument is a list of vertex angles, giving the external angle at each vertex from the previous vertex to the next. The first angle in the list is the external angle at the second vertex; the first edge always starts out heading in the positive y direction from the first vertex.
- The second argument is a list of distances between successive vertices.
-
diagrams-lib Diagrams.TwoD Method used to determine the vertices of a polygon.
-
diagrams-lib Diagrams.TwoD Options for specifying a polygon.
PolygonOpts :: PolyType n -> PolyOrientation n -> Point V2 n -> PolygonOpts ndiagrams-lib Diagrams.TwoD No documentation available.
-
Paths in two dimensions are special since we may stroke them to create a 2D diagram, and (eventually) perform operations such as intersection and union. They also have a trace, whereas paths in higher dimensions do not.
-
Special functions for points in R2.
-
This module defines a general API for creating various types of polygons.
-
diagrams-lib Diagrams.TwoD.Polygons Determine how a polygon should be oriented.
PolyPolar :: [Angle n] -> [n] -> PolyType ndiagrams-lib Diagrams.TwoD.Polygons A "polar" polygon.
- The first argument is a list of central angles from each vertex to the next.
- The second argument is a list of radii from the origin to each successive vertex.