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

Represents and absolute distance error

Represents the relative distance error as a fraction of the measured distance, within the [0, 1] range.

Trait Implementations

impl Clone for DistanceOptions
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for DistanceOptions
[src]

[src]

Formats the value using the given formatter.

impl Default for DistanceOptions
[src]

[src]

Returns the "default value" for a type. Read more