pub enum SourceNodeLocalRest {
Trs {
translation: Vec3,
rotation: Quat,
scale: Vec3,
},
Matrix(Mat4),
}Expand description
The authored local-rest representation of one source node.
glTF permits either decomposed TRS properties or a matrix. Keeping this
representation separate from Bone::rest avoids presenting a lossy
matrix decomposition as though it were authored TRS evidence.
Variants§
Trs
Source node declared translation, rotation, and scale properties.
Fields
Matrix(Mat4)
Source node declared a column-major 4×4 local transform matrix.
Trait Implementations§
Source§impl Clone for SourceNodeLocalRest
impl Clone for SourceNodeLocalRest
Source§fn clone(&self) -> SourceNodeLocalRest
fn clone(&self) -> SourceNodeLocalRest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SourceNodeLocalRest
impl RefUnwindSafe for SourceNodeLocalRest
impl Send for SourceNodeLocalRest
impl Sync for SourceNodeLocalRest
impl Unpin for SourceNodeLocalRest
impl UnsafeUnpin for SourceNodeLocalRest
impl UnwindSafe for SourceNodeLocalRest
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