pub struct BSplineCurve<P> {
pub degree: u16,
pub control_points: Vec<P>,
pub knots: Vec<f64>,
pub multiplicities: Vec<u32>,
pub weights: Option<Vec<f64>>,
pub closed: bool,
pub self_intersect: Option<bool>,
pub knot_spec: KnotSpec,
}Expand description
Exact B-spline data. Rational curves carry one weight per control point.
Fields§
§degree: u16Polynomial degree.
control_points: Vec<P>Ordered control points.
knots: Vec<f64>Distinct knot values.
multiplicities: Vec<u32>Multiplicity for each distinct knot.
weights: Option<Vec<f64>>Optional rational weights, one per control point.
closed: boolWhether the source declares the curve closed.
self_intersect: Option<bool>Whether the source declares self intersection.
knot_spec: KnotSpecSource knot convention.
Trait Implementations§
Source§impl<P> Clone for BSplineCurve<P>where
P: Clone,
impl<P> Clone for BSplineCurve<P>where
P: Clone,
Source§fn clone(&self) -> BSplineCurve<P>
fn clone(&self) -> BSplineCurve<P>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<P> Debug for BSplineCurve<P>where
P: Debug,
impl<P> Debug for BSplineCurve<P>where
P: Debug,
Source§impl<P> PartialEq for BSplineCurve<P>where
P: PartialEq,
impl<P> PartialEq for BSplineCurve<P>where
P: PartialEq,
impl<P> StructuralPartialEq for BSplineCurve<P>
Auto Trait Implementations§
impl<P> Freeze for BSplineCurve<P>
impl<P> RefUnwindSafe for BSplineCurve<P>where
P: RefUnwindSafe,
impl<P> Send for BSplineCurve<P>where
P: Send,
impl<P> Sync for BSplineCurve<P>where
P: Sync,
impl<P> Unpin for BSplineCurve<P>where
P: Unpin,
impl<P> UnwindSafe for BSplineCurve<P>where
P: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more