hps-0.15: Haskell Postscript
Graphics.PS.Query
Description
Path query functions and related operations.
Path
Synopsis
startPt :: Path -> Maybe (Pt Double) Source
Locate the starting point of the path, which must begin with a MoveTo node.
MoveTo
endPt :: Path -> Maybe (Pt Double) Source
Locate the end point of the path.
mkValid :: Path -> Path Source
Ensure path begins with a MoveTo node.
approx :: Double -> Path -> Path Source
Approximate curves as n straight line segments. That is replace CurveTo nodes with n LineTo nodes calculated using bezier4.
CurveTo
LineTo
bezier4
close :: Path -> Path Source
Append a LineTo the start point of Path.