[−][src]Trait kurbo::ParamCurve
A curve parametrized by a scalar.
If the result is interpreted as a point, this represents a curve. But the result can be interpreted as a vector as well.
Required methods
fn eval(&self, t: f64) -> Point
Evaluate the curve at parameter t
.
Generally t
is in the range [0..1].
fn subsegment(&self, range: Range<f64>) -> Self
Get a subsegment of the curve for the given parameter range.
Provided methods
fn subdivide(&self) -> (Self, Self)
Subdivide into (roughly) halves.
fn start(&self) -> Point
The start point.
fn end(&self) -> Point
The end point.
Implementors
impl ParamCurve for PathSeg
[src]
impl ParamCurve for ConstPoint
[src]
fn eval(&self, _t: f64) -> Point
[src]
fn subsegment(&self, _range: Range<f64>) -> ConstPoint
[src]
impl ParamCurve for CubicBez
[src]
fn eval(&self, t: f64) -> Point
[src]
fn start(&self) -> Point
[src]
fn end(&self) -> Point
[src]
fn subsegment(&self, range: Range<f64>) -> CubicBez
[src]
fn subdivide(&self) -> (CubicBez, CubicBez)
[src]
Subdivide into halves, using de Casteljau.