New library : purescript-geometry-plane (was purescript-canvas-geometry)

purescript-geometry-plane

A library to build planar geometric abstractions from

  • points, lines, half-lines, segments and circles,
  • using intersections to define new points

The main thing to say is that vectors are not supposed to be drawn (but
used everywhere nonetheless) and in order to see an arrow on
the screen, arrow tips arguments should be added to segments.

purescript-canvas-geometry-test

Example

Edit 18AUG2019: version 2.0.0 refactoring breaks compatibility. Effect is no more, the lib is entirely pure (see README).
Edit 11SEP2020: geometry-plane version 1.0.1 : Since there is no rendering instructions anymore, choice is yours to use it with canvas, SVG, …

8 Likes