Struct rust_raylib::math::RayCollision
source · #[repr(C)]pub struct RayCollision {
pub hit: bool,
pub distance: f32,
pub point: Vector3,
pub normal: Vector3,
}Expand description
RayCollision, ray hit information
Fields§
§hit: boolDid the ray hit something?
distance: f32Distance to the nearest hit
point: Vector3Point of the nearest hit
normal: Vector3Surface normal of hit
Trait Implementations§
source§impl Clone for RayCollision
impl Clone for RayCollision
source§fn clone(&self) -> RayCollision
fn clone(&self) -> RayCollision
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for RayCollision
impl Debug for RayCollision
source§impl From<RayCollision> for RayCollision
impl From<RayCollision> for RayCollision
source§fn from(value: RayCollision) -> Self
fn from(value: RayCollision) -> Self
Converts to this type from the input type.
source§impl From<RayCollision> for RayCollision
impl From<RayCollision> for RayCollision
source§fn from(val: RayCollision) -> Self
fn from(val: RayCollision) -> Self
Converts to this type from the input type.
source§impl PartialEq for RayCollision
impl PartialEq for RayCollision
source§fn eq(&self, other: &RayCollision) -> bool
fn eq(&self, other: &RayCollision) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for RayCollision
Auto Trait Implementations§
impl RefUnwindSafe for RayCollision
impl Send for RayCollision
impl Sync for RayCollision
impl Unpin for RayCollision
impl UnwindSafe for RayCollision
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