Struct spline::curve::bezier::Cubic [] [src]

pub struct Cubic {
    // some fields omitted
}

A cubic Bézier curve.

Methods

impl Cubic
[src]

fn new(x0: f64, y0: f64, x1: f64, y1: f64, x2: f64, y2: f64, x3: f64, y3: f64) -> Cubic

Create a curve.

fn trace<'l>(&'l self, steps: usize) -> Trace<'l, Self>

Start tracing the curve.

Trait Implementations

impl Debug for Cubic
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Copy for Cubic
[src]

impl Clone for Cubic
[src]

fn clone(&self) -> Cubic

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl Curve for Cubic
[src]

fn evaluate(&self, t: f64) -> (f64, f64)

Evalute the curve at a point in [0, 1].