[][src]Struct three::Transform

pub struct Transform {
    pub position: Point3<f32>,
    pub orientation: Quaternion<f32>,
    pub scale: f32,
}

Position, rotation, and scale of the scene node.

Fields

Position.

Orientation.

Scale.

Methods

impl Transform
[src]

Creates a new Transform with default position, orientation, and scale.

  • The default position is (0, 0, 0), meaning the global origin when in world space, or meaning no translation relative to a parent in local space.
  • The default orientation has no rotation, meaning the coordinate axes will match the global axes when the transform is in world space, or will match the axis of the parent when in local space.
  • The default scale is 1, meaning no change from the object's natural dimensions, or no change relative to the parent's dimensions.

Trait Implementations

impl PartialEq<Transform> for Transform
[src]

impl From<Decomposed<Vector3<f32>, Quaternion<f32>>> for Transform
[src]

impl Clone for Transform
[src]

Performs copy-assignment from source. Read more

impl Default for Transform
[src]

impl Debug for Transform
[src]

Auto Trait Implementations

impl Send for Transform

impl Sync for Transform

Blanket Implementations

impl<T> From for T
[src]

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

impl<T> ToOwned for T where
    T: Clone
[src]

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

impl<T> SetParameter for T

Sets value as a parameter of self.

impl<T> Erased for T