pub struct Spline { /* private fields */ }Expand description
A cardinal Catmull-Rom interpolating spline with clamped endpoint neighbors.
Implementations§
Source§impl Spline
impl Spline
Sourcepub fn through(
values: impl IntoIterator<Item = Point>,
) -> Result<Self, ValidationError>
pub fn through( values: impl IntoIterator<Item = Point>, ) -> Result<Self, ValidationError>
Captures a bounded point list, including empty/single-point degeneracies.
Trait Implementations§
Source§impl Shape for Spline
impl Shape for Spline
Source§fn path(&self) -> Result<Path2D, ValidationError>
fn path(&self) -> Result<Path2D, ValidationError>
Returns a checked path snapshot without f32 narrowing.
Source§fn bounding_box(&self) -> Result<Rect, ValidationError>
fn bounding_box(&self) -> Result<Rect, ValidationError>
Geometric bounds; defaults to the path’s cached curve bounds.
Source§fn as_rect(&self) -> Option<Rect>
fn as_rect(&self) -> Option<Rect>
Exact rectangle equivalent, when available, for a rule-independent fast path.
Auto Trait Implementations§
impl Forget for Spline
impl Freeze for Spline
impl Move for Spline
impl RefUnwindSafe for Spline
impl Send for Spline
impl Sync for Spline
impl Unpin for Spline
impl UnsafeUnpin for Spline
impl UnwindSafe for Spline
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<Geometry> IntoShapeClip for Geometrywhere
Geometry: Shape,
impl<Geometry> IntoShapeClip for Geometrywhere
Geometry: Shape,
Source§fn into_shape_clip(self) -> Result<ShapeClip, ValidationError>
fn into_shape_clip(self) -> Result<ShapeClip, ValidationError>
Captures the clip geometry, reporting invalid shapes.