pub struct LocalCoordinates {
pub x_m: Option<f64>,
pub y_m: Option<f64>,
pub z_m: Option<f64>,
pub yaw_deg: Option<f64>,
pub roll_deg: Option<f64>,
pub pitch_deg: Option<f64>,
}Expand description
Local coordinate system position.
Fields§
§x_m: Option<f64>X position in meters
y_m: Option<f64>Y position in meters
z_m: Option<f64>Z position in meters (height above floor)
yaw_deg: Option<f64>Yaw angle in degrees (rotation about Z)
roll_deg: Option<f64>Roll angle in degrees
pitch_deg: Option<f64>Pitch angle in degrees
Implementations§
Source§impl LocalCoordinates
impl LocalCoordinates
Sourcepub fn new_3d(x_m: f64, y_m: f64, z_m: f64, yaw_deg: f64) -> Self
pub fn new_3d(x_m: f64, y_m: f64, z_m: f64, yaw_deg: f64) -> Self
Create full 3D local coordinates.
Sourcepub fn to_position_2d(&self) -> Position2D
pub fn to_position_2d(&self) -> Position2D
Convert to Position2D.
Sourcepub fn to_position_3d(&self) -> Position3D
pub fn to_position_3d(&self) -> Position3D
Convert to Position3D.
Trait Implementations§
Source§impl Clone for LocalCoordinates
impl Clone for LocalCoordinates
Source§fn clone(&self) -> LocalCoordinates
fn clone(&self) -> LocalCoordinates
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LocalCoordinates
impl Debug for LocalCoordinates
Source§impl Default for LocalCoordinates
impl Default for LocalCoordinates
Source§fn default() -> LocalCoordinates
fn default() -> LocalCoordinates
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for LocalCoordinates
impl<'de> Deserialize<'de> for LocalCoordinates
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for LocalCoordinates
impl Serialize for LocalCoordinates
Auto Trait Implementations§
impl Freeze for LocalCoordinates
impl RefUnwindSafe for LocalCoordinates
impl Send for LocalCoordinates
impl Sync for LocalCoordinates
impl Unpin for LocalCoordinates
impl UnwindSafe for LocalCoordinates
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more