This library calculate contour level lines for a two-dimensional scalar field, based on the Marching Squares algorithm https://en.wikipedia.org/wiki/Marching_squares.
Construct a two-dimensial scalar field from a function
f : (Float,Float) -> Float
taking values in [0,1]x[0,1]Represent a point as (Float,Float)
Represent the discretization grid
Calculate contour lines for a given level
A line within a contour
Get a line's end points
Represent a two-dimensioal scalar field