pub struct SurfaceBoundOracle<'a> { /* private fields */ }Expand description
Derivative bounds of one surface, prepared once for many boxes.
A B-spline surface’s derivative control nets are built on construction,
so each Self::bounds call only scans the window of the box.
Implementations§
Source§impl SurfaceBoundOracle<'_>
impl SurfaceBoundOracle<'_>
Sourcepub fn separation(
&self,
u: (f64, f64),
v: (f64, f64),
) -> Option<ParameterSeparation>
pub fn separation( &self, u: (f64, f64), v: (f64, f64), ) -> Option<ParameterSeparation>
The certified separation over the box [u.0, u.1] x [v.0, v.1], or
None where it cannot be shown positive: a pole, an apex, a fold, a
box too wide, or a B-spline crease or edge inside it (!smooth).
Source§impl<'a> SurfaceBoundOracle<'a>
impl<'a> SurfaceBoundOracle<'a>
Sourcepub fn new(surface: &'a Surface) -> Option<SurfaceBoundOracle<'a>>
pub fn new(surface: &'a Surface) -> Option<SurfaceBoundOracle<'a>>
Prepare the bounds of surface, or None for a family (or data)
this module cannot bound.
Sourcepub fn for_carrier(carrier: &'a Carrier) -> Option<SurfaceBoundOracle<'a>>
pub fn for_carrier(carrier: &'a Carrier) -> Option<SurfaceBoundOracle<'a>>
Prepare the bounds of the surface a curve lies on (ADR 0077), or
None for non-finite data or a malformed spline net.
Trait Implementations§
Source§impl<'a> Clone for SurfaceBoundOracle<'a>
impl<'a> Clone for SurfaceBoundOracle<'a>
Source§fn clone(&self) -> SurfaceBoundOracle<'a>
fn clone(&self) -> SurfaceBoundOracle<'a>
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 moreAuto Trait Implementations§
impl<'a> Freeze for SurfaceBoundOracle<'a>
impl<'a> RefUnwindSafe for SurfaceBoundOracle<'a>
impl<'a> Send for SurfaceBoundOracle<'a>
impl<'a> Sync for SurfaceBoundOracle<'a>
impl<'a> Unpin for SurfaceBoundOracle<'a>
impl<'a> UnsafeUnpin for SurfaceBoundOracle<'a>
impl<'a> UnwindSafe for SurfaceBoundOracle<'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
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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