Struct splines::BezierCurveBuilder [] [src]

pub struct BezierCurveBuilder {
    // some fields omitted
}

Helper to construct a BezierCurve.

Methods

impl BezierCurveBuilder

fn new() -> BezierCurveBuilder

Prepares the creation of a Bezier curve with an interval of [0,1].

fn add_cv(&mut self, cv: Vec4<f32>) -> &mut BezierCurveBuilder

Adds control vertices (CVs) to Bezier curve.

fn set_interval(&mut self, low: f32, high: f32) -> &mut BezierCurveBuilder

Optionally overwrite the default interval of [0,1].

fn finalize(&self) -> BezierCurve

Number of CVs defines degree of Bezier curve.