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: (Scalar, Scalar),
v: (Scalar, Scalar),
) -> Option<ParameterSeparation>
pub fn separation( &self, u: (Scalar, Scalar), v: (Scalar, Scalar), ) -> 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<Self>
pub fn new(surface: &'a Surface) -> Option<Self>
Prepare the bounds of surface, or None for a family (or data)
this module cannot bound.
Sourcepub fn for_carrier(carrier: &'a Carrier) -> Option<Self>
pub fn for_carrier(carrier: &'a Carrier) -> Option<Self>
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