Struct nbez::BezChain
[−]
[src]
pub struct BezChain<F, B, C> where F: Float, B: BezCurve<F> + OrderStatic, C: AsRef<[B::Point]> {
// some fields omitted
}
A chain of bezier curves, with the last point of each curve being the first point of the next.
Methods
impl<F, B, C> BezChain<F, B, C> where F: Float, B: BezCurve<F> + OrderStatic, C: AsRef<[B::Point]>
[src]
fn from_container(container: C) -> BezChain<F, B, C>
Create a new BezChain by wrapping around a container.
fn get(&self, index: usize) -> Option<B>
Get the bezier curve that is index
curves away from the start. Returns None
if not enough
points exist for the given curve index.
fn iter(&self) -> BezIter<F, B>
Get an iterator over all curves in the chain.
fn order(&self) -> usize
Get the order of the chain's curves. Identical to order_static().
fn unwrap(self) -> C
Unwrap the chain, returning the underlying container.
Trait Implementations
impl<F: Copy, B: Copy, C: Copy> Copy for BezChain<F, B, C> where F: Float, B: BezCurve<F> + OrderStatic, C: AsRef<[B::Point]>
[src]
impl<F: Clone, B: Clone, C: Clone> Clone for BezChain<F, B, C> where F: Float, B: BezCurve<F> + OrderStatic, C: AsRef<[B::Point]>
[src]
fn clone(&self) -> BezChain<F, B, C>
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<F, B, C> OrderStatic for BezChain<F, B, C> where F: Float, B: BezCurve<F> + OrderStatic, C: AsRef<[B::Point]>
[src]
fn order_static() -> usize
Gets the compiletime-known curve order.
impl<F, B, C> AsRef<C> for BezChain<F, B, C> where F: Float, B: BezCurve<F> + OrderStatic, C: AsRef<[B::Point]>
[src]
fn as_ref(&self) -> &C
Performs the conversion.
impl<F, B, C> AsMut<C> for BezChain<F, B, C> where F: Float, B: BezCurve<F> + OrderStatic, C: AsRef<[B::Point]>
[src]
fn as_mut(&mut self) -> &mut C
Performs the conversion.