Struct PeriodicCurve2
pub struct PeriodicCurve2<'a> { /* private fields */ }Expand description
Verified closed-seam extension of a planar B-spline curve.
This view does not reinterpret the curve as an algebraically periodic knot vector. It validates the declared geometric seam and wraps only through the explicit methods below. The borrowed neutral curve remains unchanged.
Implementations§
§impl<'a> PeriodicCurve2<'a>
impl<'a> PeriodicCurve2<'a>
pub fn try_new(
curve: &'a BSplineCurve<DVec2>,
tolerance: Tolerance,
) -> Result<PeriodicCurve2<'a>, GeomError>
pub fn try_new( curve: &'a BSplineCurve<DVec2>, tolerance: Tolerance, ) -> Result<PeriodicCurve2<'a>, GeomError>
Validate closed metadata and at least positional seam continuity.
pub const fn seam_continuity(self) -> SeamContinuity
pub const fn seam_continuity(self) -> SeamContinuity
Highest endpoint continuity verified during construction.
pub fn wrap_parameter(self, parameter: f64) -> Result<f64, GeomError>
pub fn wrap_parameter(self, parameter: f64) -> Result<f64, GeomError>
Wrap a finite parameter into the native active domain.
An in-domain upper endpoint remains the upper endpoint so one-sided endpoint jets retain the neutral evaluator’s existing semantics.
pub fn evaluate(self, parameter: f64) -> Result<DVec2, GeomError>
pub fn evaluate(self, parameter: f64) -> Result<DVec2, GeomError>
Evaluate the closed-seam extension at any finite parameter.
pub fn jet(self, parameter: f64) -> Result<CurveJet<DVec2, DVec2>, GeomError>
pub fn jet(self, parameter: f64) -> Result<CurveJet<DVec2, DVec2>, GeomError>
Evaluate point, first derivative, and second derivative after wrapping.
pub fn insert_knot(
self,
parameter: f64,
) -> Result<BSplineCurve<DVec2>, GeomError>
pub fn insert_knot( self, parameter: f64, ) -> Result<BSplineCurve<DVec2>, GeomError>
Insert a shape-preserving knot at a periodic-equivalent interior parameter.
Exterior parameters are canonicalized. Parameters equivalent to either seam endpoint are rejected because clamped endpoint multiplicity cannot be increased as an interior edit.
pub fn split_at(
self,
parameter: f64,
) -> Result<(BSplineCurve<DVec2>, BSplineCurve<DVec2>), GeomError>
pub fn split_at( self, parameter: f64, ) -> Result<(BSplineCurve<DVec2>, BSplineCurve<DVec2>), GeomError>
Split at a periodic-equivalent interior parameter into two open curves.
The operation cuts the cycle; neither output retains closed metadata.
Trait Implementations§
§impl<'a> Clone for PeriodicCurve2<'a>
impl<'a> Clone for PeriodicCurve2<'a>
§fn clone(&self) -> PeriodicCurve2<'a>
fn clone(&self) -> PeriodicCurve2<'a>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more§impl<'a> Debug for PeriodicCurve2<'a>
impl<'a> Debug for PeriodicCurve2<'a>
impl<'a> Copy for PeriodicCurve2<'a>
Auto Trait Implementations§
impl<'a> Freeze for PeriodicCurve2<'a>
impl<'a> RefUnwindSafe for PeriodicCurve2<'a>
impl<'a> Send for PeriodicCurve2<'a>
impl<'a> Sync for PeriodicCurve2<'a>
impl<'a> Unpin for PeriodicCurve2<'a>
impl<'a> UnwindSafe for PeriodicCurve2<'a>
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
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>
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>
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