Module stroke::cubic_bezier

source ·

Structs

  • A 2d cubic Bezier curve defined by four points: the starting point, two successive control points and the ending point. The curve is defined by equation: ∀ t ∈ [0..1], P(t) = (1 - t)³ * start + 3 * (1 - t)² * t * ctrl1 + 3 * t² * (1 - t) * ctrl2 + t³ * end