pub struct DirVec2 { /* private fields */ }
Expand description
A 2-D vector that separates direction from length.
This may be used rather than Vec2
if the length
may be at or near 0.0
but the direction is still important,
or to distinguish between a vector with a negative length
and a vector in the opposite direction of positive length.
Such distinctions are necessary when describing the
normal distance between PlacedShape
s.
Implementations§
Trait Implementations§
impl Copy for DirVec2
impl StructuralPartialEq for DirVec2
Auto Trait Implementations§
impl Freeze for DirVec2
impl RefUnwindSafe for DirVec2
impl Send for DirVec2
impl Sync for DirVec2
impl Unpin for DirVec2
impl UnwindSafe for DirVec2
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