hps-0.15: Haskell Postscript

Safe HaskellSafe-Inferred
LanguageHaskell98

Graphics.PS.Query

Description

Path query functions and related operations.

Synopsis

Documentation

startPt :: Path -> Maybe (Pt Double) Source

Locate the starting point of the path, which must begin with a MoveTo node.

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.

close :: Path -> Path Source

Append a LineTo the start point of Path.