Implementations
sourceimpl<N: Num> Transform<N>
impl<N: Num> Transform<N>
pub fn new() -> Self
pub fn set_position(self, position: Point<N>) -> Self
pub fn position(&self) -> Point<N>
pub fn set_rotation(self, rotation: f32) -> Self
pub fn rotation(&self) -> f32
pub fn set_scale(self, scale: Size<N>) -> Self
pub fn scale(self) -> Size<N>
sourceimpl<N> Transform<N> where
N: Num + Signed,
impl<N> Transform<N> where
N: Num + Signed,
pub fn set_flip_x_from_dir_num(self, dir: f32) -> Self
pub fn set_flip_y_from_dir_num(self, dir: f32) -> Self
pub fn set_flip_x_from_bool(self, is_flipped: bool) -> Self
pub fn set_flip_y_from_bool(self, is_flipped: bool) -> Self
Trait Implementations
impl<N: Copy + Num> Copy for Transform<N>
impl<N: Num> StructuralPartialEq for Transform<N>
Auto Trait Implementations
impl<N> RefUnwindSafe for Transform<N> where
N: RefUnwindSafe,
impl<N> Send for Transform<N> where
N: Send,
impl<N> Sync for Transform<N> where
N: Sync,
impl<N> Unpin for Transform<N> where
N: Unpin,
impl<N> UnwindSafe for Transform<N> where
N: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub 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.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub 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