pub struct RelativeVector<T: Scalar>(/* private fields */);
Trait Implementations§
Source§impl<T: Scalar> Add<PositionVector<T>> for RelativeVector<T>
impl<T: Scalar> Add<PositionVector<T>> for RelativeVector<T>
Source§type Output = PositionVector<T>
type Output = PositionVector<T>
The resulting type after applying the
+
operator.Source§impl<T: Scalar> Add<RelativeVector<T>> for PositionVector<T>
impl<T: Scalar> Add<RelativeVector<T>> for PositionVector<T>
Source§type Output = PositionVector<T>
type Output = PositionVector<T>
The resulting type after applying the
+
operator.Source§fn add(self, other: RelativeVector<T>) -> Self
fn add(self, other: RelativeVector<T>) -> Self
Performs the
+
operation. Read moreSource§impl<T: Scalar> Add for RelativeVector<T>
impl<T: Scalar> Add for RelativeVector<T>
Source§impl<T: Clone + Scalar> Clone for RelativeVector<T>
impl<T: Clone + Scalar> Clone for RelativeVector<T>
Source§fn clone(&self) -> RelativeVector<T>
fn clone(&self) -> RelativeVector<T>
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<T: Scalar> Display for RelativeVector<T>
impl<T: Scalar> Display for RelativeVector<T>
Source§impl<T: Scalar> Div<T> for RelativeVector<T>
impl<T: Scalar> Div<T> for RelativeVector<T>
Source§impl<T: Scalar> From<RelativeVector<T>> for Vector<T>
impl<T: Scalar> From<RelativeVector<T>> for Vector<T>
Source§fn from(from: RelativeVector<T>) -> Self
fn from(from: RelativeVector<T>) -> Self
Converts to this type from the input type.
Source§impl<T: Scalar> From<Vector<T>> for RelativeVector<T>
impl<T: Scalar> From<Vector<T>> for RelativeVector<T>
Source§fn from(original: Vector<T>) -> RelativeVector<T>
fn from(original: Vector<T>) -> RelativeVector<T>
Converts to this type from the input type.
Source§impl<T: Scalar> Mul<T> for RelativeVector<T>
impl<T: Scalar> Mul<T> for RelativeVector<T>
Source§impl<T: Scalar + Neg<Output = T>> Neg for RelativeVector<T>
impl<T: Scalar + Neg<Output = T>> Neg for RelativeVector<T>
Source§type Output = RelativeVector<T>
type Output = RelativeVector<T>
The resulting type after applying the
-
operator.Source§fn neg(self) -> RelativeVector<T>
fn neg(self) -> RelativeVector<T>
Performs the unary
-
operation. Read moreSource§impl<T: Scalar> Sub<PositionVector<T>> for RelativeVector<T>
impl<T: Scalar> Sub<PositionVector<T>> for RelativeVector<T>
Source§type Output = PositionVector<T>
type Output = PositionVector<T>
The resulting type after applying the
-
operator.Source§impl<T: Scalar> Sub<RelativeVector<T>> for PositionVector<T>
impl<T: Scalar> Sub<RelativeVector<T>> for PositionVector<T>
Source§type Output = PositionVector<T>
type Output = PositionVector<T>
The resulting type after applying the
-
operator.Source§fn sub(self, other: RelativeVector<T>) -> Self
fn sub(self, other: RelativeVector<T>) -> Self
Performs the
-
operation. Read moreSource§impl<T: Scalar> Sub for RelativeVector<T>
impl<T: Scalar> Sub for RelativeVector<T>
impl<T: Copy + Scalar> Copy for RelativeVector<T>
impl<T: Scalar> StructuralPartialEq for RelativeVector<T>
Auto Trait Implementations§
impl<T> Freeze for RelativeVector<T>where
T: Freeze,
impl<T> RefUnwindSafe for RelativeVector<T>where
T: RefUnwindSafe,
impl<T> Send for RelativeVector<T>where
T: Send,
impl<T> Sync for RelativeVector<T>where
T: Sync,
impl<T> Unpin for RelativeVector<T>where
T: Unpin,
impl<T> UnwindSafe for RelativeVector<T>where
T: UnwindSafe,
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