Struct simple_fcl::DistanceOptions
[−]
[src]
pub struct DistanceOptions { pub absolute_error: f64, pub relative_error: f64, }
Options for distance check.
Sets the maximum allowed distance underestimate.
For distance D
, with absolute error a
and relative error r
, we can
get a distance measurement of anywhere between max(D - a, D * (1 - r))
and D
.
Fields
absolute_error: f64
Represents and absolute distance error
relative_error: f64
Represents the relative distance error as a fraction of the measured distance, within the [0, 1] range.
Trait Implementations
impl Clone for DistanceOptions
[src]
fn clone(&self) -> DistanceOptions
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for DistanceOptions
[src]
impl Default for DistanceOptions
[src]
fn default() -> DistanceOptions
[src]
Returns the "default value" for a type. Read more