pub struct TileHit {
pub col: i64,
pub row: i64,
pub dest_x: i64,
pub dest_y: i64,
pub dest_x_f64: f64,
pub dest_y_f64: f64,
}Expand description
Result of tile intersection computation.
Fields§
§col: i64§row: i64§dest_x: i64Pixel offset where this tile’s top-left lands in the output buffer.
dest_y: i64§dest_x_f64: f64Floating-point placement used by irregular tilemaps.
dest_y_f64: f64Trait Implementations§
Auto Trait Implementations§
impl Freeze for TileHit
impl RefUnwindSafe for TileHit
impl Send for TileHit
impl Sync for TileHit
impl Unpin for TileHit
impl UnsafeUnpin for TileHit
impl UnwindSafe for TileHit
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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