Struct pos::point::Accuracy
[−]
[src]
pub struct Accuracy { pub time: f64, pub x: f64, pub y: f64, pub z: f64, pub roll: Radians<f64>, pub pitch: Radians<f64>, pub yaw: Radians<f64>, pub pdop: f64, pub satellite_count: Option<SatelliteCount>, }
The accuracy of a position.
Fields
time: f64
x: f64
y: f64
z: f64
roll: Radians<f64>
pitch: Radians<f64>
yaw: Radians<f64>
pdop: f64
satellite_count: Option<SatelliteCount>
Methods
impl Accuracy
[src]
fn interpolate(&self, other: &Accuracy, time: f64) -> Accuracy
Linearly interpolate a new accuracy between these two.
Examples
use pos::point::Accuracy; let mut accuracy1: Accuracy = Default::default(); accuracy1.time = 10.0; let mut accuracy2: Accuracy = Default::default(); accuracy2.time = 20.0; let accuracy3 = accuracy1.interpolate(&accuracy2, 15.0);
Trait Implementations
impl Clone for Accuracy
[src]
fn clone(&self) -> Accuracy
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more