#[non_exhaustive]pub struct Spline {
pub degree: u32,
pub flags: u32,
pub knots: Vec<f64>,
pub control: Vec<P3>,
pub weights: Vec<f64>,
pub fit: Vec<P3>,
pub start_tangent: Option<P3>,
pub end_tangent: Option<P3>,
}Expand description
SPLINE (and the spline of a HELIX): degree, knots, control points with weights, fit points
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.degree: u32§flags: u3270: 1 closed, 2 periodic, 4 rational, 8 planar, 16 linear
knots: Vec<f64>§control: Vec<P3>§weights: Vec<f64>one per control point, or empty (all 1)
fit: Vec<P3>§start_tangent: Option<P3>§end_tangent: Option<P3>Trait Implementations§
impl StructuralPartialEq for Spline
Auto Trait Implementations§
impl Forget for Spline
impl Freeze for Spline
impl Move for Spline
impl RefUnwindSafe for Spline
impl Send for Splinewhere
RawVecInner: Send,
impl Sync for Splinewhere
RawVecInner: Sync,
impl Unpin for Spline
impl UnsafeUnpin for Splinewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<f64>: UnsafeUnpin,
PhantomData<[f64; 3]>: UnsafeUnpin,
impl UnwindSafe for Splinewhere
RawVecInner: 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