Struct euler::Transform
[−]
[src]
pub struct Transform { pub translation: Vec3, pub rotation: Quat, pub scale: Vec3, }
Translation + Rotation + Non-uniform Scale transform in 3D space.
Fields
translation: Vec3
Translation vector.
rotation: Quat
Rotation quaternion.
scale: Vec3
Non-uniform scaling.
Methods
impl Transform
[src]
fn identity() -> Self
[src]
Returns the identity transform.
fn matrix(&self) -> Mat4
[src]
Returns the equivalent matrix representation for this transform.
Trait Implementations
impl Clone for Transform
[src]
fn clone(&self) -> Transform
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more