pub struct WorldCoordinate {
pub x_coordinate: f64,
pub y_coordinate: f64,
pub z_coordinate: f64,
}
Expand description
Implemented according to IEEE 1278.1-2012 §6.2.98
Fields§
§x_coordinate: f64
The coordinate value along the X-axis which passes through the prime meridian at the equator
y_coordinate: f64
The coordinate value along the Y-axis which passes through 90°E longitude at the equator
z_coordinate: f64
The coordinate value along the Z-axis which passes through the North Pole
Implementations§
Source§impl WorldCoordinate
impl WorldCoordinate
Sourcepub fn new(x: f64, y: f64, z: f64) -> Self
pub fn new(x: f64, y: f64, z: f64) -> Self
Create a new WorldCoordinate
§Examples
Instantiating a new WorldCoordinate
:
use open_dis_rust::common::world_coordinate::WorldCoordinate;
let mut world_coordinate = WorldCoordinate::default();
pub fn serialize(&self, buf: &mut BytesMut)
pub fn decode(buf: &mut BytesMut) -> WorldCoordinate
Trait Implementations§
Source§impl Clone for WorldCoordinate
impl Clone for WorldCoordinate
Source§fn clone(&self) -> WorldCoordinate
fn clone(&self) -> WorldCoordinate
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 WorldCoordinate
impl Debug for WorldCoordinate
Source§impl Default for WorldCoordinate
impl Default for WorldCoordinate
Source§fn default() -> WorldCoordinate
fn default() -> WorldCoordinate
Returns the “default value” for a type. Read more
impl Copy for WorldCoordinate
Auto Trait Implementations§
impl Freeze for WorldCoordinate
impl RefUnwindSafe for WorldCoordinate
impl Send for WorldCoordinate
impl Sync for WorldCoordinate
impl Unpin for WorldCoordinate
impl UnwindSafe for WorldCoordinate
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