Struct amethyst_core::Orientation [] [src]

pub struct Orientation {
    pub forward: Vector3<f32>,
    pub right: Vector3<f32>,
    pub up: Vector3<f32>,
}

This struct contains 3 unit vectors pointing in the given directions.

This information relies on the coordinate system in use, otherwise some of the vectors may have incorrect sign.

Fields

Forward vector [x, y, z]

Right vector [x, y, z]

Up vector [x, y, z]

Trait Implementations

impl Copy for Orientation
[src]

impl Clone for Orientation
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Orientation
[src]

[src]

Formats the value using the given formatter. Read more

impl PartialEq for Orientation
[src]

[src]

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

[src]

This method tests for !=.

impl From<Matrix3<f32>> for Orientation
[src]

[src]

Performs the conversion.

Reverses the z axis matching the GL coordinate system.

impl Default for Orientation
[src]

[src]

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

Auto Trait Implementations

impl Send for Orientation

impl Sync for Orientation