pub struct RaycastHit { /* private fields */ }Expand description
Result of a 2D physics raycast intersection query.
Implementations§
Source§impl RaycastHit
impl RaycastHit
pub fn get_entity(&self) -> EntityId
pub fn get_mut_entity(&mut self) -> &mut EntityId
pub fn set_entity(&mut self, val: EntityId) -> &mut Self
pub fn get_point(&self) -> Point
pub fn get_mut_point(&mut self) -> &mut Point
pub fn set_point(&mut self, val: Point) -> &mut Self
pub fn get_normal(&self) -> Point
pub fn get_mut_normal(&mut self) -> &mut Point
pub fn set_normal(&mut self, val: Point) -> &mut Self
pub fn get_distance(&self) -> f32
pub fn get_mut_distance(&mut self) -> &mut f32
pub fn set_distance(&mut self, val: f32) -> &mut Self
Trait Implementations§
Source§impl Clone for RaycastHit
impl Clone for RaycastHit
impl Copy for RaycastHit
Source§impl Debug for RaycastHit
impl Debug for RaycastHit
Source§impl PartialEq for RaycastHit
impl PartialEq for RaycastHit
impl StructuralPartialEq for RaycastHit
Auto Trait Implementations§
impl Forget for RaycastHit
impl Freeze for RaycastHit
impl Move for RaycastHit
impl RefUnwindSafe for RaycastHit
impl Send for RaycastHit
impl Sync for RaycastHit
impl Unpin for RaycastHit
impl UnsafeUnpin for RaycastHit
impl UnwindSafe for RaycastHit
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