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

Safe HaskellNone

Geom2D.CubicBezier.Outline

Description

Offsetting bezier curves and stroking curves.

Synopsis

Documentation

bezierOffsetSource

Arguments

:: CubicBezier

The curve

-> Double

Offset distance.

-> Double

Tolerance.

-> [CubicBezier]

The offset curve

Calculate an offset path from the bezier curve to within tolerance. If the distance is positive offset to the left, otherwise to the right. A smaller tolerance may require more bezier curves in the path to approximate the offset curve

bezierOffsetMax :: Int -> CubicBezier -> Double -> Double -> [CubicBezier]Source

Like bezierOffset, but limit the number of subpaths for each smooth subsegment. The number should not be smaller than one.