pub struct Xform {
pub t: [f32; 3],
pub q: [f32; 4],
pub s: [f32; 3],
}Expand description
A transform as Mecanim stores it (xform): translation, rotation as a quaternion [x, y, z, w] and scale.
Fields§
§t: [f32; 3]Translation.
q: [f32; 4]Rotation, a quaternion [x, y, z, w].
s: [f32; 3]Scale.
Trait Implementations§
impl Copy for Xform
impl StructuralPartialEq for Xform
Auto Trait Implementations§
impl Freeze for Xform
impl RefUnwindSafe for Xform
impl Send for Xform
impl Sync for Xform
impl Unpin for Xform
impl UnsafeUnpin for Xform
impl UnwindSafe for Xform
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