pub struct Ray2 {
pub origin: DVec2,
pub direction: DVec2,
}Expand description
A parametric two-dimensional ray: origin + t * direction for t >= 0.
The 3D counterpart lives in axiolid-core; this is the missing planar half
of the pair, added because planar linear queries need a stable value type.
Fields§
§origin: DVec2Ray start.
direction: DVec2Ray direction. It need not be normalized at the storage boundary.
Trait Implementations§
impl Copy for Ray2
impl StructuralPartialEq for Ray2
Auto Trait Implementations§
impl Freeze for Ray2
impl RefUnwindSafe for Ray2
impl Send for Ray2
impl Sync for Ray2
impl Unpin for Ray2
impl UnwindSafe for Ray2
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