Struct ark_api::world::Transform3
source · [−]pub struct Transform3 { /* private fields */ }
Expand description
Transform3 struct.
Represents a 3-dimensional transform decomposed into scale, rotation, translation
Implementations
sourceimpl Transform3
impl Transform3
sourcepub fn from_scale_rotation_translation(
scale: Vec3,
rotation: Quat,
translation: Vec3
) -> Self
pub fn from_scale_rotation_translation(
scale: Vec3,
rotation: Quat,
translation: Vec3
) -> Self
Creates a Transform3
from scale, rotation, translation
sourcepub fn from_affine3(t: &Affine3A) -> Self
pub fn from_affine3(t: &Affine3A) -> Self
Decomposes an Affine3A
into a Transform3
sourcepub fn from_entity_transform(t: &EntityTransform) -> Self
pub fn from_entity_transform(t: &EntityTransform) -> Self
Creates a Transform3
from an EntityTransform
Trait Implementations
sourceimpl Clone for Transform3
impl Clone for Transform3
sourcefn clone(&self) -> Transform3
fn clone(&self) -> Transform3
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 more
sourceimpl Debug for Transform3
impl Debug for Transform3
impl Copy for Transform3
Auto Trait Implementations
impl RefUnwindSafe for Transform3
impl Send for Transform3
impl Sync for Transform3
impl Unpin for Transform3
impl UnwindSafe for Transform3
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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