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

Safe HaskellNone
LanguageHaskell98

Geom2D.CubicBezier.Curvature

Synopsis

Documentation

curvature :: CubicBezier Double -> Double -> Double Source

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

radiusOfCurvature :: CubicBezier Double -> Double -> Double Source

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

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

Find extrema of the curvature, but not inflection points.

findRadius Source

Arguments

:: CubicBezier Double

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.