pub struct Position {
pub x: f64,
pub y: f64,
pub z: f64,
}Expand description
A point in 3-D space, coordinates in metres (an inertial frame’s axes). Euclidean distance
is transcendental (a square root), so positions are f64 — the one place the time tower leaves
the exact-rational world, because the geometry of spacetime demands it.
Fields§
§x: f64§y: f64§z: f64Implementations§
Trait Implementations§
impl Copy for Position
impl StructuralPartialEq for Position
Auto Trait Implementations§
impl Freeze for Position
impl RefUnwindSafe for Position
impl Send for Position
impl Sync for Position
impl Unpin for Position
impl UnsafeUnpin for Position
impl UnwindSafe for Position
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