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 moresourceimpl 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 Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more