Safe Haskell | None |
---|---|
Language | Haskell98 |
Synopsis
- curvature :: CubicBezier Double -> Double -> Double
- radiusOfCurvature :: CubicBezier Double -> Double -> Double
- curvatureExtrema :: CubicBezier Double -> Double -> [Double]
- findRadius :: CubicBezier Double -> Double -> Double -> [Double]
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.
:: 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.