pub struct SplineShape {
pub degree: usize,
pub knots: Vec<Scalar>,
pub weights: Vec<Scalar>,
}Expand description
The shape of a CurveKind::Spline beyond its control points, for one
that is not the uniform non-rational spline a drawn one is: its degree,
its clamped knot vector (control_points + degree + 1 knots) and one
weight per control point.
Fields§
§degree: usize§knots: Vec<Scalar>§weights: Vec<Scalar>Trait Implementations§
Source§impl Clone for SplineShape
impl Clone for SplineShape
Source§fn clone(&self) -> SplineShape
fn clone(&self) -> SplineShape
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SplineShape
impl Debug for SplineShape
Source§impl<'de> Deserialize<'de> for SplineShape
impl<'de> Deserialize<'de> for SplineShape
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for SplineShape
impl PartialEq for SplineShape
Source§impl Serialize for SplineShape
impl Serialize for SplineShape
impl StructuralPartialEq for SplineShape
Auto Trait Implementations§
impl Freeze for SplineShape
impl RefUnwindSafe for SplineShape
impl Send for SplineShape
impl Sync for SplineShape
impl Unpin for SplineShape
impl UnsafeUnpin for SplineShape
impl UnwindSafe for SplineShape
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