pub struct RayHit {
pub block_x: i32,
pub block_y: i32,
pub block_z: i32,
pub distance: f64,
}Expand description
Result of a ray cast against the block grid.
Fields§
§block_x: i32The block position that was hit.
block_y: i32Block Y.
block_z: i32Block Z.
distance: f64Distance from origin to hit point.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RayHit
impl RefUnwindSafe for RayHit
impl Send for RayHit
impl Sync for RayHit
impl Unpin for RayHit
impl UnsafeUnpin for RayHit
impl UnwindSafe for RayHit
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