cubicbezier-0.2.0: Efficient manipulating of 2D cubic bezier curves.

Safe HaskellNone

Geom2D.CubicBezier.Curvature

Synopsis

Documentation

curvature :: CubicBezier -> Double -> DoubleSource

Curvature of the Bezier curve. A negative curvature means the curve curves to the right.

radiusOfCurvature :: CubicBezier -> Double -> DoubleSource

Radius of curvature of the Bezier curve. This is the reciprocal of the curvature.

curvatureExtrema :: CubicBezier -> Double -> [Double]Source

Find extrema of the curvature, but not inflection points.

findRadiusSource

Arguments

:: CubicBezier

the curve

-> Double

distance

-> Double

tolerance

-> [Double]

result

Find points on the curve that have a certain radius of curvature. Values to the left and to the right of the curve are returned.