@hackage / cubicbezier

Efficient manipulating of 2D cubic bezier curves.

Latest0.6.0.7

About

Metadata

  • Last updated , by BrentYorgey
  • License BSD-3-Clause
  • Categories Mathematics, Graphics
  • Maintained by: Kristof Bastiaensen, byorgey@gmail.com

  • Lottery factor: 0

Links

Installation

Package Flags

Use the -f option with cabal commands to enable flags

    debug (off by default)

    Enable debug messages

Readme

This library supports efficient manipulating of 2D cubic bezier curves, for use in graphics or typography. Supported features are:

Evaluating bezier curves and derivatives, affine transformations on bezier curves, arclength and inverse arclength, intersections between two curves, intersection between a curve and a line, curvature and radius of curvature, finding tangents parallel to a vector, finding inflection points and cusps.

It also supports polynomial root finding with Bernstein polynomials.

The module Geom2D.CubicBezier exports all the cubic bezier functions. The module Geom2D contains general 2D geometry functions and transformations.