Struct pos::point::Point
[−]
[src]
pub struct Point { pub time: f64, pub longitude: Radians<f64>, pub latitude: Radians<f64>, pub altitude: f64, pub roll: Radians<f64>, pub pitch: Radians<f64>, pub yaw: Radians<f64>, pub distance: Option<f64>, pub x_velocity: Option<f64>, pub y_velocity: Option<f64>, pub z_velocity: Option<f64>, pub wander_angle: Option<Radians<f64>>, pub x_acceleration: Option<f64>, pub y_acceleration: Option<f64>, pub z_acceleration: Option<f64>, pub x_angular_rate: Option<Radians<f64>>, pub y_angular_rate: Option<Radians<f64>>, pub z_angular_rate: Option<Radians<f64>>, pub accuracy: Option<Accuracy>, }
A position point.
This must contain position and attidue information, and may contain error information.
Fields
time: f64
longitude: Radians<f64>
latitude: Radians<f64>
altitude: f64
roll: Radians<f64>
pitch: Radians<f64>
yaw: Radians<f64>
distance: Option<f64>
x_velocity: Option<f64>
y_velocity: Option<f64>
z_velocity: Option<f64>
wander_angle: Option<Radians<f64>>
x_acceleration: Option<f64>
y_acceleration: Option<f64>
z_acceleration: Option<f64>
x_angular_rate: Option<Radians<f64>>
y_angular_rate: Option<Radians<f64>>
z_angular_rate: Option<Radians<f64>>
accuracy: Option<Accuracy>
Methods
impl Point
[src]
fn interpolate(&self, other: &Point, time: f64) -> Point
Linearly interpolate a new point between these two.
Examples
use pos::point::Point; let mut p1: Point = Default::default(); p1.time = 10.0; let mut p2: Point = Default::default(); p2.time = 20.0; let p3 = p1.interpolate(&p2, 15.0);
Trait Implementations
impl Clone for Point
[src]
fn clone(&self) -> Point
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