pub struct ScalarWrapper<T>(pub T);
Expand description
Treated as Real Quaternion.
QuaternionWrapper = ScalarWrapper + Vector3Wrapper
Tuple Fields§
§0: T
Implementations§
Trait Implementations§
Source§impl<T: Float> Add<QuaternionWrapper<T>> for ScalarWrapper<T>
impl<T: Float> Add<QuaternionWrapper<T>> for ScalarWrapper<T>
Source§type Output = QuaternionWrapper<T>
type Output = QuaternionWrapper<T>
The resulting type after applying the
+
operator.Source§fn add(self, other: QuaternionWrapper<T>) -> QuaternionWrapper<T>
fn add(self, other: QuaternionWrapper<T>) -> QuaternionWrapper<T>
Performs the
+
operation. Read moreSource§impl<T: Float> Add<ScalarWrapper<T>> for QuaternionWrapper<T>
impl<T: Float> Add<ScalarWrapper<T>> for QuaternionWrapper<T>
Source§type Output = QuaternionWrapper<T>
type Output = QuaternionWrapper<T>
The resulting type after applying the
+
operator.Source§fn add(self, other: ScalarWrapper<T>) -> Self
fn add(self, other: ScalarWrapper<T>) -> Self
Performs the
+
operation. Read moreSource§impl<T: Float> Add<ScalarWrapper<T>> for Vector3Wrapper<T>
impl<T: Float> Add<ScalarWrapper<T>> for Vector3Wrapper<T>
Source§type Output = QuaternionWrapper<T>
type Output = QuaternionWrapper<T>
The resulting type after applying the
+
operator.Source§fn add(self, other: ScalarWrapper<T>) -> QuaternionWrapper<T>
fn add(self, other: ScalarWrapper<T>) -> QuaternionWrapper<T>
Performs the
+
operation. Read moreSource§impl<T: Float> Add<Vector3Wrapper<T>> for ScalarWrapper<T>
impl<T: Float> Add<Vector3Wrapper<T>> for ScalarWrapper<T>
Source§type Output = QuaternionWrapper<T>
type Output = QuaternionWrapper<T>
The resulting type after applying the
+
operator.Source§fn add(self, other: Vector3Wrapper<T>) -> QuaternionWrapper<T>
fn add(self, other: Vector3Wrapper<T>) -> QuaternionWrapper<T>
Performs the
+
operation. Read moreSource§impl<T: Float> Add for ScalarWrapper<T>
impl<T: Float> Add for ScalarWrapper<T>
Source§type Output = ScalarWrapper<T>
type Output = ScalarWrapper<T>
The resulting type after applying the
+
operator.Source§fn add(self, other: ScalarWrapper<T>) -> Self
fn add(self, other: ScalarWrapper<T>) -> Self
Performs the
+
operation. Read moreSource§impl<T: Float> AddAssign for ScalarWrapper<T>
impl<T: Float> AddAssign for ScalarWrapper<T>
Source§fn add_assign(&mut self, other: ScalarWrapper<T>)
fn add_assign(&mut self, other: ScalarWrapper<T>)
Performs the
+=
operation. Read moreSource§impl<T: Clone> Clone for ScalarWrapper<T>
impl<T: Clone> Clone for ScalarWrapper<T>
Source§fn clone(&self) -> ScalarWrapper<T>
fn clone(&self) -> ScalarWrapper<T>
Returns a duplicate 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: Debug> Debug for ScalarWrapper<T>
impl<T: Debug> Debug for ScalarWrapper<T>
Source§impl<T: Float> Div<ScalarWrapper<T>> for QuaternionWrapper<T>
impl<T: Float> Div<ScalarWrapper<T>> for QuaternionWrapper<T>
Source§type Output = QuaternionWrapper<T>
type Output = QuaternionWrapper<T>
The resulting type after applying the
/
operator.Source§fn div(self, other: ScalarWrapper<T>) -> Self
fn div(self, other: ScalarWrapper<T>) -> Self
Performs the
/
operation. Read moreSource§impl<T: Float> Div<ScalarWrapper<T>> for Vector3Wrapper<T>
impl<T: Float> Div<ScalarWrapper<T>> for Vector3Wrapper<T>
Source§type Output = Vector3Wrapper<T>
type Output = Vector3Wrapper<T>
The resulting type after applying the
/
operator.Source§fn div(self, other: ScalarWrapper<T>) -> Self
fn div(self, other: ScalarWrapper<T>) -> Self
Performs the
/
operation. Read moreSource§impl<T: Float> Div for ScalarWrapper<T>
impl<T: Float> Div for ScalarWrapper<T>
Source§type Output = ScalarWrapper<T>
type Output = ScalarWrapper<T>
The resulting type after applying the
/
operator.Source§fn div(self, other: ScalarWrapper<T>) -> Self
fn div(self, other: ScalarWrapper<T>) -> Self
Performs the
/
operation. Read moreSource§impl<T: Float> DivAssign for ScalarWrapper<T>
impl<T: Float> DivAssign for ScalarWrapper<T>
Source§fn div_assign(&mut self, other: ScalarWrapper<T>)
fn div_assign(&mut self, other: ScalarWrapper<T>)
Performs the
/=
operation. Read moreSource§impl<T: Float> Mul<QuaternionWrapper<T>> for ScalarWrapper<T>
impl<T: Float> Mul<QuaternionWrapper<T>> for ScalarWrapper<T>
Source§type Output = QuaternionWrapper<T>
type Output = QuaternionWrapper<T>
The resulting type after applying the
*
operator.Source§fn mul(self, other: QuaternionWrapper<T>) -> QuaternionWrapper<T>
fn mul(self, other: QuaternionWrapper<T>) -> QuaternionWrapper<T>
Performs the
*
operation. Read moreSource§impl<T: Float> Mul<ScalarWrapper<T>> for QuaternionWrapper<T>
impl<T: Float> Mul<ScalarWrapper<T>> for QuaternionWrapper<T>
Source§type Output = QuaternionWrapper<T>
type Output = QuaternionWrapper<T>
The resulting type after applying the
*
operator.Source§fn mul(self, other: ScalarWrapper<T>) -> Self
fn mul(self, other: ScalarWrapper<T>) -> Self
Performs the
*
operation. Read moreSource§impl<T: Float> Mul<ScalarWrapper<T>> for Vector3Wrapper<T>
impl<T: Float> Mul<ScalarWrapper<T>> for Vector3Wrapper<T>
Source§type Output = Vector3Wrapper<T>
type Output = Vector3Wrapper<T>
The resulting type after applying the
*
operator.Source§fn mul(self, other: ScalarWrapper<T>) -> Self
fn mul(self, other: ScalarWrapper<T>) -> Self
Performs the
*
operation. Read moreSource§impl<T: Float> Mul<Vector3Wrapper<T>> for ScalarWrapper<T>
impl<T: Float> Mul<Vector3Wrapper<T>> for ScalarWrapper<T>
Source§type Output = Vector3Wrapper<T>
type Output = Vector3Wrapper<T>
The resulting type after applying the
*
operator.Source§fn mul(self, other: Vector3Wrapper<T>) -> Vector3Wrapper<T>
fn mul(self, other: Vector3Wrapper<T>) -> Vector3Wrapper<T>
Performs the
*
operation. Read moreSource§impl<T: Float> Mul for ScalarWrapper<T>
impl<T: Float> Mul for ScalarWrapper<T>
Source§type Output = ScalarWrapper<T>
type Output = ScalarWrapper<T>
The resulting type after applying the
*
operator.Source§fn mul(self, other: ScalarWrapper<T>) -> Self
fn mul(self, other: ScalarWrapper<T>) -> Self
Performs the
*
operation. Read moreSource§impl<T: Float> MulAssign for ScalarWrapper<T>
impl<T: Float> MulAssign for ScalarWrapper<T>
Source§fn mul_assign(&mut self, other: ScalarWrapper<T>)
fn mul_assign(&mut self, other: ScalarWrapper<T>)
Performs the
*=
operation. Read moreSource§impl<T: Float> Neg for ScalarWrapper<T>
impl<T: Float> Neg for ScalarWrapper<T>
Source§impl<T: Float> Sub<QuaternionWrapper<T>> for ScalarWrapper<T>
impl<T: Float> Sub<QuaternionWrapper<T>> for ScalarWrapper<T>
Source§type Output = QuaternionWrapper<T>
type Output = QuaternionWrapper<T>
The resulting type after applying the
-
operator.Source§fn sub(self, other: QuaternionWrapper<T>) -> QuaternionWrapper<T>
fn sub(self, other: QuaternionWrapper<T>) -> QuaternionWrapper<T>
Performs the
-
operation. Read moreSource§impl<T: Float> Sub<ScalarWrapper<T>> for QuaternionWrapper<T>
impl<T: Float> Sub<ScalarWrapper<T>> for QuaternionWrapper<T>
Source§type Output = QuaternionWrapper<T>
type Output = QuaternionWrapper<T>
The resulting type after applying the
-
operator.Source§fn sub(self, other: ScalarWrapper<T>) -> Self
fn sub(self, other: ScalarWrapper<T>) -> Self
Performs the
-
operation. Read moreSource§impl<T: Float> Sub<ScalarWrapper<T>> for Vector3Wrapper<T>
impl<T: Float> Sub<ScalarWrapper<T>> for Vector3Wrapper<T>
Source§type Output = QuaternionWrapper<T>
type Output = QuaternionWrapper<T>
The resulting type after applying the
-
operator.Source§fn sub(self, other: ScalarWrapper<T>) -> QuaternionWrapper<T>
fn sub(self, other: ScalarWrapper<T>) -> QuaternionWrapper<T>
Performs the
-
operation. Read moreSource§impl<T: Float> Sub<Vector3Wrapper<T>> for ScalarWrapper<T>
impl<T: Float> Sub<Vector3Wrapper<T>> for ScalarWrapper<T>
Source§type Output = QuaternionWrapper<T>
type Output = QuaternionWrapper<T>
The resulting type after applying the
-
operator.Source§fn sub(self, other: Vector3Wrapper<T>) -> QuaternionWrapper<T>
fn sub(self, other: Vector3Wrapper<T>) -> QuaternionWrapper<T>
Performs the
-
operation. Read moreSource§impl<T: Float> Sub for ScalarWrapper<T>
impl<T: Float> Sub for ScalarWrapper<T>
Source§type Output = ScalarWrapper<T>
type Output = ScalarWrapper<T>
The resulting type after applying the
-
operator.Source§fn sub(self, other: ScalarWrapper<T>) -> Self
fn sub(self, other: ScalarWrapper<T>) -> Self
Performs the
-
operation. Read moreSource§impl<T: Float> SubAssign for ScalarWrapper<T>
impl<T: Float> SubAssign for ScalarWrapper<T>
Source§fn sub_assign(&mut self, other: ScalarWrapper<T>)
fn sub_assign(&mut self, other: ScalarWrapper<T>)
Performs the
-=
operation. Read moreimpl<T: Copy> Copy for ScalarWrapper<T>
Auto Trait Implementations§
impl<T> Freeze for ScalarWrapper<T>where
T: Freeze,
impl<T> RefUnwindSafe for ScalarWrapper<T>where
T: RefUnwindSafe,
impl<T> Send for ScalarWrapper<T>where
T: Send,
impl<T> Sync for ScalarWrapper<T>where
T: Sync,
impl<T> Unpin for ScalarWrapper<T>where
T: Unpin,
impl<T> UnwindSafe for ScalarWrapper<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