pub struct Transform { /* private fields */ }Expand description
A general geometric transformation combining rotation and translation
Implementations§
Source§impl Transform
impl Transform
Sourcepub fn new(rotor: Rotor, translation: Translation) -> Self
pub fn new(rotor: Rotor, translation: Translation) -> Self
Create a new transform with rotation and translation
Sourcepub fn translation(translation: Translation) -> Self
pub fn translation(translation: Translation) -> Self
Create a pure translation transform
Sourcepub fn then(&self, other: &Transform) -> Transform
pub fn then(&self, other: &Transform) -> Transform
Compose two transforms: self followed by other
Sourcepub fn interpolate(&self, t: f64) -> Transform
pub fn interpolate(&self, t: f64) -> Transform
Interpolate between identity and this transform
Sourcepub fn interpolate_to(&self, other: &Transform, t: f64) -> Transform
pub fn interpolate_to(&self, other: &Transform, t: f64) -> Transform
Interpolate to another transform
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Transform
impl RefUnwindSafe for Transform
impl Send for Transform
impl Sync for Transform
impl Unpin for Transform
impl UnsafeUnpin 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