hgeometric-0.0.1: A geometric library with bindings to GPC.

Algebra.Geometric.Polygon.File

Description

Support for reading and writing a Polygon in a file.

Synopsis

Documentation

readPolygon :: FilePath -> Bool -> IO (Maybe Polygon)Source

Reads a file into a Polygon. If the file isn't accessible, then Nothing is returned.

writePolygon :: String -> Bool -> Polygon -> IO BoolSource

If the Polygon was successfully written, then this function returns True, and False otherwise.