Expand description
An instance transform.
It descrides position, rotation and scale.
The rotation may be any type that implements IntoQuat
.
Fields
pos: [f32; 3]
The position in X, Y, Z coordinates.
rot: Q
The rotation is one of an IntoQuat
type.
scl: [f32; 3]
The scale in X, Y, Z axes.
Trait Implementations
sourceimpl<Q> IntoTransform for Transform<Q>
impl<Q> IntoTransform for Transform<Q>
type IntoQuat = Q
fn into_transform(self) -> Transform<Self::IntoQuat>
impl<Q: Copy> Copy for Transform<Q>
Auto Trait Implementations
impl<Q> RefUnwindSafe for Transform<Q>where
Q: RefUnwindSafe,
impl<Q> Send for Transform<Q>where
Q: Send,
impl<Q> Sync for Transform<Q>where
Q: Sync,
impl<Q> Unpin for Transform<Q>where
Q: Unpin,
impl<Q> UnwindSafe for Transform<Q>where
Q: UnwindSafe,
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