Struct shiv_transform::GlobalTransform
source · Expand description
A global transform representing an affine transformation.
This is the transform relative to the origin.
Fields
translation: Vec3
rotation_scale: Mat3
Implementations
Trait Implementations
sourceimpl Clone for GlobalTransform
impl Clone for GlobalTransform
sourcefn clone(&self) -> GlobalTransform
fn clone(&self) -> GlobalTransform
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Component for GlobalTransform
impl Component for GlobalTransform
type Storage = SparseStorage
sourceimpl Debug for GlobalTransform
impl Debug for GlobalTransform
sourceimpl Default for GlobalTransform
impl Default for GlobalTransform
sourceimpl From<&Transform> for GlobalTransform
impl From<&Transform> for GlobalTransform
sourceimpl From<Transform> for GlobalTransform
impl From<Transform> for GlobalTransform
sourceimpl Mul<GlobalTransform> for GlobalTransform
impl Mul<GlobalTransform> for GlobalTransform
type Output = GlobalTransform
type Output = GlobalTransform
The resulting type after applying the
*
operator.sourcefn mul(self, rhs: GlobalTransform) -> Self::Output
fn mul(self, rhs: GlobalTransform) -> Self::Output
Performs the
*
operation. Read moresourceimpl Mul<Transform> for GlobalTransform
impl Mul<Transform> for GlobalTransform
sourceimpl Mul<Vec3> for GlobalTransform
impl Mul<Vec3> for GlobalTransform
sourceimpl MulAssign<GlobalTransform> for GlobalTransform
impl MulAssign<GlobalTransform> for GlobalTransform
sourcefn mul_assign(&mut self, rhs: GlobalTransform)
fn mul_assign(&mut self, rhs: GlobalTransform)
Performs the
*=
operation. Read moresourceimpl PartialEq<GlobalTransform> for GlobalTransform
impl PartialEq<GlobalTransform> for GlobalTransform
sourcefn eq(&self, other: &GlobalTransform) -> bool
fn eq(&self, other: &GlobalTransform) -> bool
impl Copy for GlobalTransform
impl StructuralPartialEq for GlobalTransform
Auto Trait Implementations
impl RefUnwindSafe for GlobalTransform
impl Send for GlobalTransform
impl Sync for GlobalTransform
impl Unpin for GlobalTransform
impl UnwindSafe for GlobalTransform
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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
impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
. Read morefn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
. Read morefn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s. Read morefn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s. Read more