com.caffeineowl.graphics.bezier
Interface CubicSegmentConsumer

All Known Implementing Classes:
BezierUtils.CubicArrayListConsumer, BezierUtils.MidPointApproxTransformer

public interface CubicSegmentConsumer

Behaviour for classes used to process/store java.awt.geom.CubicCurve2D segments resulted from subdivisions (see BezierUtils.adaptiveHalving(CubicCurve2D, CubicSubdivisionCriterion, CubicSegmentConsumer)).

Author:
Adrian Colomitchi (acolomitchi(monkey_tail)gmail.com)

Method Summary
 void processSegment(java.awt.geom.CubicCurve2D segment, double startT, double endT)
          The caller passes to the consumer a new segment to be processed.
 

Method Detail

processSegment

void processSegment(java.awt.geom.CubicCurve2D segment,
                    double startT,
                    double endT)
The caller passes to the consumer a new segment to be processed.

Parameters:
segment - the cubic segment
startT - the value for parameter to which the segment's start corresponds on the original curve.
endT - the value for parameter to which the segment's finish end corresponds on the original curve.