[][src]Trait arnalisa::HasDirection

pub trait HasDirection {
    fn determine_direction(&self) -> Option<Direction>;

    fn check_direction(
        &self,
        scope: &Scope,
        calibration: &CalibrationSource
    ) -> Result<()> { ... } }

A trait for entities that can have a direction.

Required methods

fn determine_direction(&self) -> Option<Direction>

Determine the direction.

Will return None if no single direction can be determined. The reason is one of the following:

  • Too few points (e.g. zero or one point only in a curve).
  • The slope changes (e.g. incline first, then decline) in the course of the curve.
Loading content...

Provided methods

fn check_direction(
    &self,
    scope: &Scope,
    calibration: &CalibrationSource
) -> Result<()>

Check whether a calibration has a direction.

Loading content...

Implementations on Foreign Types

impl HasDirection for IndexMap<R64, R64>[src]

Loading content...

Implementors

Loading content...