DeCasteljauSolvableBezierType

public protocol DeCasteljauSolvableBezierType : BezierType

Protocol for Bézier curve types that can be solved using De Casteljau’s algorithm.

  • Solves this Bézier curve using De Casteljau’s algorithm.

    Is slower than solving curves in polynomial form but is numerically stable.

    Declaration

    Swift

    func solveDeCasteljau(at input: Double) -> Output
  • Splits this Bézier curve into two curves that overlap this curve, splitting it along a specified input interval that ranges from (0-1).

    Declaration

    Swift

    func split(at input: Double) -> (left: Self, right: Self)