Struct geo_nd::FQArrayTrans
source · 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>where
F: Deserialize<'de> + Float + Serialize,
impl<'de, F> Deserialize<'de> for FQArrayTrans<F>where F: Deserialize<'de> + Float + Serialize,
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: 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