Struct cuivre::transform::Transform[][src]

pub struct Transform {
    pub position: Vector3f,
    pub scale: Vector3f,
    pub rotation: Vector3f,
}

Represents a transformation in 3D space: translation (position), scale, rotation (Euler's angles).

Fields

Methods

impl Transform
[src]

Create a transform with default position, scale, and rotation.

Create a transform with set position, with default scale and rotation.

Create a transform with set scale, with default position and rotation.

Create a transform with set rotation, with default position and scale.

Creates a matrix that applies the transform to a vector, or another matrix.

Trait Implementations

impl Copy for Transform
[src]

impl Clone for Transform
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Transform
[src]

Formats the value using the given formatter. Read more

impl PartialEq for Transform
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Default for Transform
[src]

Returns the "default value" for a type. Read more

Auto Trait Implementations

impl Send for Transform

impl Sync for Transform