[−][src]Trait arnalisa::HasDirection
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.
Provided methods
fn check_direction(
&self,
scope: &Scope,
calibration: &CalibrationSource
) -> Result<()>
&self,
scope: &Scope,
calibration: &CalibrationSource
) -> Result<()>
Check whether a calibration has a direction.