pub struct WorldPos {
pub x: f64,
pub y: f64,
pub z: f64,
}Expand description
A position in engine world space, always f64.
What one unit means is the PositionSource’s business: Mercator unit
square for a map, layout units for a graph, logical pixels for a flat
overlay. The engine only ever subtracts, compares and bounds them.
Fields§
§x: f64§y: f64§z: f64Filled by the ElevationSource; a PositionSource should leave it 0.0.
Implementations§
Trait Implementations§
impl Copy for WorldPos
impl StructuralPartialEq for WorldPos
Auto Trait Implementations§
impl Freeze for WorldPos
impl RefUnwindSafe for WorldPos
impl Send for WorldPos
impl Sync for WorldPos
impl Unpin for WorldPos
impl UnsafeUnpin for WorldPos
impl UnwindSafe for WorldPos
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more