Struct ambient_api_core::global::Ray
source · pub struct Ray {
pub origin: Vec3,
pub dir: Vec3,
}
Expand description
Ray represented by an origin and a direction
Fields§
§origin: Vec3
Origin of the ray
dir: Vec3
Direction of the ray
Implementations§
Trait Implementations§
impl Copy for Ray
Auto Trait Implementations§
impl RefUnwindSafe for Ray
impl Send for Ray
impl Sync for Ray
impl Unpin for Ray
impl UnwindSafe for Ray
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