pub enum Field2 {
Series(SeriesField2),
Patches(PatchField2),
}Expand description
A field over a surface’s parameters whose zero set is a section curve: another surface’s equation read in this surface’s parameters.
Variants§
Series(SeriesField2)
Powers and harmonics, on an analytic surface.
Patches(PatchField2)
Piecewise Bernstein polynomials, on a B-spline surface.
Implementations§
Source§impl Field2
impl Field2
Sourcepub fn magnitude(&self) -> f64
pub fn magnitude(&self) -> f64
A bound on the field’s size over its whole domain, and the scale its rounding is measured in.
Sourcepub fn scale_at(&self, p: DVec2) -> f64
pub fn scale_at(&self, p: DVec2) -> f64
The sum of the magnitudes of the terms that make up the value at
p: the scale the value’s rounding is measured in there. A power
series read far from its origin has terms much larger than its
coefficients, and a value that cancels them to near zero carries
their rounding.
Trait Implementations§
impl StructuralPartialEq for Field2
Auto Trait Implementations§
impl Freeze for Field2
impl RefUnwindSafe for Field2
impl Send for Field2
impl Sync for Field2
impl Unpin for Field2
impl UnwindSafe for Field2
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<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