Struct skeletal_animation::QVTransform
source · [−]pub struct QVTransform {
pub translation: Vector3<f32>,
pub scale: f32,
pub rotation: Quaternion<f32>,
}
Expand description
Transformation represented by separate scaling, translation, and rotation factors.
Fields
translation: Vector3<f32>
Translation
scale: f32
Uniform scale factor.
rotation: Quaternion<f32>
Rotation
Trait Implementations
sourceimpl Clone for QVTransform
impl Clone for QVTransform
sourcefn clone(&self) -> QVTransform
fn clone(&self) -> QVTransform
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for QVTransform
impl Debug for QVTransform
sourceimpl Transform for QVTransform
impl Transform for QVTransform
fn identity() -> QVTransform
fn set_rotation(&mut self, rotation: Quaternion<f32>)
fn get_rotation(self) -> Quaternion<f32>
fn set_translation(&mut self, translation: Vector3<f32>)
fn get_translation(self) -> Vector3<f32>
fn concat(self, other: QVTransform) -> QVTransform
fn inverse(self) -> QVTransform
fn lerp(self, other: QVTransform, parameter: f32) -> QVTransform
fn transform_vector(self, v: Vector3<f32>) -> Vector3<f32>
fn to_matrix(self) -> Matrix4<f32>
fn from_matrix(m: Matrix4<f32>) -> QVTransform
impl Copy for QVTransform
Auto Trait Implementations
impl RefUnwindSafe for QVTransform
impl Send for QVTransform
impl Sync for QVTransform
impl Unpin for QVTransform
impl UnwindSafe for QVTransform
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more