pub struct Ray2d {
pub origin: Vec2,
pub direction: Direction2d,
}
Expand description
An infinite half-line starting at origin
and going in direction
in 2D space.
Fields§
§origin: Vec2
The origin of the ray.
direction: Direction2d
The direction of the ray.
Implementations§
Trait Implementations§
source§impl PartialEq for Ray2d
impl PartialEq for Ray2d
impl Copy for Ray2d
impl StructuralPartialEq for Ray2d
Auto Trait Implementations§
impl Freeze for Ray2d
impl RefUnwindSafe for Ray2d
impl Send for Ray2d
impl Sync for Ray2d
impl Unpin for Ray2d
impl UnwindSafe for Ray2d
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