pub struct UnitVector(pub Vector);
Tuple Fields§
§0: Vector
Implementations§
Source§impl UnitVector
impl UnitVector
pub fn reflected(&self, normal: &UnitVector) -> UnitVector
Trait Implementations§
Source§impl AlmostEqual for UnitVector
impl AlmostEqual for UnitVector
fn almost_equal(&self, other: &UnitVector) -> bool
Source§impl Clone for UnitVector
impl Clone for UnitVector
Source§fn clone(&self) -> UnitVector
fn clone(&self) -> UnitVector
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for UnitVector
impl Debug for UnitVector
Source§impl Neg for UnitVector
impl Neg for UnitVector
Source§type Output = UnitVector
type Output = UnitVector
The resulting type after applying the
-
operator.Source§fn neg(self) -> UnitVector
fn neg(self) -> UnitVector
Performs the unary
-
operation. Read moreimpl Copy for UnitVector
Auto Trait Implementations§
impl Freeze for UnitVector
impl RefUnwindSafe for UnitVector
impl Send for UnitVector
impl Sync for UnitVector
impl Unpin for UnitVector
impl UnwindSafe for UnitVector
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