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<'de> Deserialize<'de> for Ray2d
impl<'de> Deserialize<'de> for Ray2d
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for Ray2d
impl PartialEq for Ray2d
impl Copy for Ray2d
impl StructuralPartialEq for Ray2d
Auto Trait Implementations§
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