CurveInterval

constructor(curve: Curve2, tLo: Double, tHi: Double, pLo: Vec2, pHi: Vec2)(source)

Creates a new instance of CurveInterval representing the interval of a curve. It calculates whether the interval is "flat," determines its parameter range, and sets the starting and ending positions of the interval on the curve.

Parameters

curve

the curve (Curve2) to which this interval belongs

tLo

the lower bound of the parametric range

tHi

the upper bound of the parametric range

pLo

the 2D point on the curve corresponding to tLo

pHi

the 2D point on the curve corresponding to tHi