Enum dae_parser::Transform
source · [−]pub enum Transform {
LookAt(LookAt),
Matrix(Matrix),
Rotate(Rotate),
Scale(Scale),
Skew(Skew),
Translate(Translate),
}
Expand description
A transformation, that can be represented as a matrix (but may be expressed in another way for convenience).
Variants
LookAt(LookAt)
Contains a position and orientation transformation suitable for aiming a camera.
Matrix(Matrix)
A generic 4x4 matrix.
Rotate(Rotate)
An axis-angle rotation.
Scale(Scale)
A scale along the three dimentions.
Skew(Skew)
A skew deformation.
Translate(Translate)
A translation by a vector.
Implementations
Trait Implementations
sourceimpl From<RigidTransform> for Transform
impl From<RigidTransform> for Transform
sourcefn from(tr: RigidTransform) -> Self
fn from(tr: RigidTransform) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl RefUnwindSafe for Transform
impl Send for Transform
impl Sync for Transform
impl Unpin for Transform
impl UnwindSafe for Transform
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
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.
sourcefn clone_into(&self, target: &mut T)
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