pub struct RayCastInput {
pub origin: Vec2,
pub translation: Vec2,
pub max_fraction: f32,
}Expand description
Low level ray cast input data. (b2RayCastInput)
Fields§
§origin: Vec2Start point of the ray cast
translation: Vec2Translation of the ray cast
max_fraction: f32The maximum fraction of the translation to consider, typically 1
Trait Implementations§
Source§impl Clone for RayCastInput
impl Clone for RayCastInput
Source§fn clone(&self) -> RayCastInput
fn clone(&self) -> RayCastInput
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for RayCastInput
Source§impl Debug for RayCastInput
impl Debug for RayCastInput
Source§impl Default for RayCastInput
impl Default for RayCastInput
Source§fn default() -> RayCastInput
fn default() -> RayCastInput
Returns the “default value” for a type. Read more
Source§impl PartialEq for RayCastInput
impl PartialEq for RayCastInput
impl StructuralPartialEq for RayCastInput
Auto Trait Implementations§
impl Freeze for RayCastInput
impl RefUnwindSafe for RayCastInput
impl Send for RayCastInput
impl Sync for RayCastInput
impl Unpin for RayCastInput
impl UnsafeUnpin for RayCastInput
impl UnwindSafe for RayCastInput
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