[][src]Struct dragon::core::transform::Transform3

pub struct Transform3 { /* fields omitted */ }

Methods

impl Transform3[src]

pub fn new(
    position: Translation3<f32>,
    rotation: UnitQuaternion<f32>,
    scale: Vector3<f32>
) -> Self
[src]

pub fn default() -> Self[src]

pub fn translation(&self) -> &Vector3<f32>[src]

pub fn translation_mut(&mut self) -> &mut Vector3<f32>[src]

pub fn rotation(&self) -> &UnitQuaternion<f32>[src]

pub fn rotation_mut(&mut self) -> &mut UnitQuaternion<f32>[src]

pub fn prepend_translation(&mut self, translation: Vector3<f32>) -> &mut Self[src]

pub fn append_translation(&mut self, translation: Vector3<f32>) -> &mut Self[src]

pub fn set_translation(&mut self, position: Vector3<f32>) -> &mut Self[src]

pub fn set_translation_xyz(&mut self, x: f32, y: f32, z: f32) -> &mut Self[src]

pub fn set_rotation(&mut self, rotation: UnitQuaternion<f32>) -> &mut Self[src]

pub fn prepend_rotation(
    &mut self,
    axis: Unit<Vector3<f32>>,
    angle: f32
) -> &mut Self
[src]

pub fn append_rotation(
    &mut self,
    axis: Unit<Vector3<f32>>,
    angle: f32
) -> &mut Self
[src]

pub fn matrix(&self) -> Matrix4<f32>[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>,