pub struct OutlineParams {
pub reach: f64,
pub cell: f64,
pub share: f64,
pub level_fraction: f64,
pub max_grid_nodes: usize,
}Available on crate feature
geometry only.Expand description
The parameters of weighted_outline.
Fields§
§reach: f64How far a member’s hill reaches: the field of a member is zero at this distance. Finite and above zero.
cell: f64The distance between grid nodes. Finite, above zero and at most reach / 2.
The share of the total number the outline must hold, in (0, 1].
level_fraction: f64The fraction of the level of the last member held at which a membrane’s line is drawn, in (0, 1].
max_grid_nodes: usizeThe most nodes the grid may hold; a larger grid is GeometryError::GridTooLarge.
Implementations§
Source§impl OutlineParams
impl OutlineParams
Sourcepub fn new(reach: f64, cell: f64, share: f64) -> Self
pub fn new(reach: f64, cell: f64, share: f64) -> Self
Parameters with DEFAULT_LEVEL_FRACTION and DEFAULT_MAX_GRID_NODES.
Trait Implementations§
Source§impl Clone for OutlineParams
impl Clone for OutlineParams
Source§impl Debug for OutlineParams
impl Debug for OutlineParams
Source§impl PartialEq for OutlineParams
impl PartialEq for OutlineParams
impl StructuralPartialEq for OutlineParams
Auto Trait Implementations§
impl Forget for OutlineParams
impl Freeze for OutlineParams
impl Move for OutlineParams
impl RefUnwindSafe for OutlineParams
impl Send for OutlineParams
impl Sync for OutlineParams
impl Unpin for OutlineParams
impl UnsafeUnpin for OutlineParams
impl UnwindSafe for OutlineParams
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§unsafe fn to_subset_unchecked(&self) -> SS
unsafe fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.