flattenBezier

templated version of bezier flatten curve function, allocates temporary buffer

  1. PointF[] flattenBezier(PointF[] cp, int segmentCountInclusive)
    flattenBezier
    (
    alias BezierFunc
    )
    if (
    is(typeof(BezierFunc) == function)
    )
  2. void flattenBezier(PointF[] cp, int segmentCountInclusive, PointF[] outSegments)

Meta