Struct nbez::NBez [] [src]

pub struct NBez<F, P = Point2d<F>, C = Vec<P>> where
    F: Float,
    P: Point<F>,
    C: AsRef<[P]> + AsMut<[P]>, 
{ /* fields omitted */ }

An n-order bezier curve. The from_slice, split, and split_unbounded functions currently do not work.

Methods

impl<F, P, C> NBez<F, P, C> where
    F: Float,
    P: Point<F>,
    C: AsRef<[P]> + AsMut<[P]>, 
[src]

Trait Implementations

impl<F: Clone, P: Clone, C: Clone> Clone for NBez<F, P, C> where
    F: Float,
    P: Point<F>,
    C: AsRef<[P]> + AsMut<[P]>, 
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<F, P, C> From<C> for NBez<F, P, C> where
    F: Float,
    P: Point<F>,
    C: AsRef<[P]> + AsMut<[P]>, 
[src]

Performs the conversion.

impl<F, P, C> BezCurve<F> for NBez<F, P, C> where
    F: Float,
    P: Point<F>,
    C: AsRef<[P]> + AsMut<[P]>, 
[src]

Currently non-functional; returns None

Perform interpolation on the curve with no range bounds

Get the slope for the given t with no range bounds

Elevate the curve order, getting a curve that is one order higher but gives the same results upon interpolation Read more

Currently non-functional; returns None

Currently non-functional; panics with unimplemented

Gets the order of the curve

Perform interpolation on the curve for the given t, bounded on 0.0 to 1.0 inclusive. Returns None if t is not within bounds. Read more

Get the slope for the given t, bounded on 0.0 to 1.0 inclusive. Returns None if t is not within bounds. Read more

Get an iterator over the interpolated values of this curve, splitting the curve into the given number of samples. Read more

impl<F, P, C> AsRef<C> for NBez<F, P, C> where
    F: Float,
    P: Point<F>,
    C: AsRef<[P]> + AsMut<[P]>, 
[src]

Performs the conversion.

impl<F, P, C> AsMut<C> for NBez<F, P, C> where
    F: Float,
    P: Point<F>,
    C: AsRef<[P]> + AsMut<[P]>, 
[src]

Performs the conversion.

impl<F, P, C> AsRef<[P]> for NBez<F, P, C> where
    F: Float,
    P: Point<F>,
    C: AsRef<[P]> + AsMut<[P]>, 
[src]

Performs the conversion.

impl<F, P, C> AsMut<[P]> for NBez<F, P, C> where
    F: Float,
    P: Point<F>,
    C: AsRef<[P]> + AsMut<[P]>, 
[src]

Performs the conversion.

impl<F, P, C> Debug for NBez<F, P, C> where
    F: Float,
    P: Point<F>,
    C: AsRef<[P]> + AsMut<[P]> + Debug
[src]

Formats the value using the given formatter.