pub struct FQArrayTrans<F: Float + Serialize> { /* private fields */ }
Expand description
A transformation that is a translation . scaling . rotation (i.e. it applies the rotation to an object, then scales it, then translates it)
This should probably mirror the QArray in using an F, V3 and V4.
Trait Implementations§
Source§impl<F: Clone + Float + Serialize> Clone for FQArrayTrans<F>
impl<F: Clone + Float + Serialize> Clone for FQArrayTrans<F>
Source§fn clone(&self) -> FQArrayTrans<F>
fn clone(&self) -> FQArrayTrans<F>
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<'de, F> Deserialize<'de> for FQArrayTrans<F>
impl<'de, F> Deserialize<'de> for FQArrayTrans<F>
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<F> Display for FQArrayTrans<F>
impl<F> Display for FQArrayTrans<F>
Source§impl<F> Serialize for FQArrayTrans<F>
impl<F> Serialize for FQArrayTrans<F>
Source§impl<F: Float + Serialize> Transform<F, FArray<F, 3>, FArray<F, 4>, FArray2<F, 4, 16>, QArray<F, FArray<F, 3>, FArray<F, 4>>> for FQArrayTrans<F>
impl<F: Float + Serialize> Transform<F, FArray<F, 3>, FArray<F, 4>, FArray2<F, 4, 16>, QArray<F, FArray<F, 3>, FArray<F, 4>>> for FQArrayTrans<F>
Source§fn of_trs(
t: FArray<F, 3>,
r: QArray<F, FArray<F, 3>, FArray<F, 4>>,
s: F,
) -> Self
fn of_trs( t: FArray<F, 3>, r: QArray<F, FArray<F, 3>, FArray<F, 4>>, s: F, ) -> Self
Create an FQArrayTrans from a Vector3 translation, Quat rotation and Float scaling
Source§fn translation(&self) -> FArray<F, 3>
fn translation(&self) -> FArray<F, 3>
Get the translation of the transformation
impl<F: Copy + Float + Serialize> Copy for FQArrayTrans<F>
Auto Trait Implementations§
impl<F> Freeze for FQArrayTrans<F>where
F: Freeze,
impl<F> RefUnwindSafe for FQArrayTrans<F>where
F: RefUnwindSafe,
impl<F> Send for FQArrayTrans<F>where
F: Send,
impl<F> Sync for FQArrayTrans<F>where
F: Sync,
impl<F> Unpin for FQArrayTrans<F>where
F: Unpin,
impl<F> UnwindSafe for FQArrayTrans<F>where
F: 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