pub struct DistanceOptions {
pub max: f64,
pub facing_limit: Option<f64>,
pub signed: bool,
}Fields§
§max: f64The farthest a closest point may be; a point with nothing within it
answers None. May be infinite.
facing_limit: Option<f64>The greatest angle, in radians, between a point’s own normal and
the surface it is measured to, in [0, π]; None measures to all
of it.
signed: boolWhether a point inside reads negative. Unsigned distances are never negative.
Implementations§
Source§impl DistanceOptions
impl DistanceOptions
Sourcepub fn check(&self) -> OgeomResult<()>
pub fn check(&self) -> OgeomResult<()>
The options checked: max not negative or undefined, and the facing
limit, where there is one, in [0, π].
§Errors
OgeomError::Domain for either out
of its range.
Trait Implementations§
Source§impl Clone for DistanceOptions
impl Clone for DistanceOptions
impl Copy for DistanceOptions
Source§impl Debug for DistanceOptions
impl Debug for DistanceOptions
Source§impl Default for DistanceOptions
impl Default for DistanceOptions
Source§impl PartialEq for DistanceOptions
impl PartialEq for DistanceOptions
impl StructuralPartialEq for DistanceOptions
Auto Trait Implementations§
impl Freeze for DistanceOptions
impl RefUnwindSafe for DistanceOptions
impl Send for DistanceOptions
impl Sync for DistanceOptions
impl Unpin for DistanceOptions
impl UnsafeUnpin for DistanceOptions
impl UnwindSafe for DistanceOptions
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,
impl<T> Scalar for T
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§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 more§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).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.