pub enum TinInterpMethod {
Idw {
power: f64,
},
NaturalNeighbor,
}Expand description
Interpolation method used by rasterize_tin.
See module-level documentation for guidance on choosing between the two variants.
Variants§
Idw
Inverse-distance weighting from the enclosing triangle’s three
vertices. power controls the falloff exponent; power = 2.0 is the
classical Shepard interpolation. Must be strictly positive.
NaturalNeighbor
Barycentric (natural-neighbor-style) interpolation within the enclosing Delaunay triangle. Exactly reproduces linear surfaces.
Trait Implementations§
Source§impl Clone for TinInterpMethod
impl Clone for TinInterpMethod
Source§fn clone(&self) -> TinInterpMethod
fn clone(&self) -> TinInterpMethod
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 moreimpl Copy for TinInterpMethod
Source§impl Debug for TinInterpMethod
impl Debug for TinInterpMethod
Source§impl Default for TinInterpMethod
impl Default for TinInterpMethod
Source§impl PartialEq for TinInterpMethod
impl PartialEq for TinInterpMethod
Source§fn eq(&self, other: &TinInterpMethod) -> bool
fn eq(&self, other: &TinInterpMethod) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TinInterpMethod
Auto Trait Implementations§
impl Freeze for TinInterpMethod
impl RefUnwindSafe for TinInterpMethod
impl Send for TinInterpMethod
impl Sync for TinInterpMethod
impl Unpin for TinInterpMethod
impl UnsafeUnpin for TinInterpMethod
impl UnwindSafe for TinInterpMethod
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