pub struct Transform<T> {
pub xx: T,
pub xy: T,
pub yx: T,
pub yy: T,
pub tx: T,
pub ty: T,
}
Fields§
§xx: T
§xy: T
§yx: T
§yy: T
§tx: T
§ty: T
Implementations§
Source§impl<T> Transform<T>
impl<T> Transform<T>
pub fn identity() -> Transform<T>
pub fn from_scale(sx: T, sy: T) -> Transform<T>where
T: Zero,
pub fn from_scale_uniform(s: T) -> Transform<T>
pub fn from_translate(tx: T, ty: T) -> Transform<T>
pub fn translate(self, tx: T, ty: T) -> Transform<T>
pub fn scale(self, sx: T, sy: T) -> Transform<T>
pub fn scale_uniform(self, s: T) -> Transform<T>
pub fn concat(self, other: Transform<T>) -> Transform<T>
Trait Implementations§
impl<T> Copy for Transform<T>where
T: Copy,
impl<T> Eq for Transform<T>where
T: Eq,
impl<T> StructuralPartialEq for Transform<T>
Auto Trait Implementations§
impl<T> Freeze for Transform<T>where
T: Freeze,
impl<T> RefUnwindSafe for Transform<T>where
T: RefUnwindSafe,
impl<T> Send for Transform<T>where
T: Send,
impl<T> Sync for Transform<T>where
T: Sync,
impl<T> Unpin for Transform<T>where
T: Unpin,
impl<T> UnwindSafe for Transform<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> ActionTrait for T
impl<T> ActionTrait for T
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