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§
Source§impl From<RigidTransform> for Transform
impl From<RigidTransform> for Transform
Source§fn from(tr: RigidTransform) -> Self
fn from(tr: RigidTransform) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Transform
impl RefUnwindSafe for Transform
impl Send for Transform
impl Sync for Transform
impl Unpin for Transform
impl UnwindSafe for Transform
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