pub enum PointsSeparation {
Constant(Scalar),
SteepnessMapping(Scalar, Scalar),
}
Expand description
Point separation source.
Variants§
Constant(Scalar)
Each point has constant point separation.
SteepnessMapping(Scalar, Scalar)
Each point has local point separation that depends on the steepness value.
When steepness is in range from 0 to 1, then steepness 0 maps to max and 1 maps to min.
(min, max)
Implementations§
Trait Implementations§
Source§impl Clone for PointsSeparation
impl Clone for PointsSeparation
Source§fn clone(&self) -> PointsSeparation
fn clone(&self) -> PointsSeparation
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for PointsSeparation
impl Debug for PointsSeparation
Source§impl<'de> Deserialize<'de> for PointsSeparation
impl<'de> Deserialize<'de> for PointsSeparation
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<f32> for PointsSeparation
impl From<f32> for PointsSeparation
Source§impl FromStr for PointsSeparation
impl FromStr for PointsSeparation
Source§impl PartialEq for PointsSeparation
impl PartialEq for PointsSeparation
Source§impl Serialize for PointsSeparation
impl Serialize for PointsSeparation
Source§impl ToString for PointsSeparation
impl ToString for PointsSeparation
impl Copy for PointsSeparation
impl StructuralPartialEq for PointsSeparation
Auto Trait Implementations§
impl Freeze for PointsSeparation
impl RefUnwindSafe for PointsSeparation
impl Send for PointsSeparation
impl Sync for PointsSeparation
impl Unpin for PointsSeparation
impl UnwindSafe for PointsSeparation
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