selectIntervals01 MethodStatic

  • Augment the unsortedFractionsArray with 0 and 1
  • sort
  • test the midpoint of each interval with clipper.isPointOnOrInside
  • pass accepted intervals to announce(f0,f1,curve)

selectIntervals01(curve: CurvePrimitive, unsortedFractions: GrowableFloat64Array, clipper: Clipper, announce?: AnnounceNumberNumberCurvePrimitive): boolean

Parameter Type Description
curve CurvePrimitive  
unsortedFractions GrowableFloat64Array  
clipper Clipper  
announce AnnounceNumberNumberCurvePrimitive  

Returns - boolean

Defined in

Last Updated: 20 June, 2023