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: Vector3<f32>
Forward vector [x, y, z]
right: Vector3<f32>
Right vector [x, y, z]
up: Vector3<f32>
Up vector [x, y, z]
Trait Implementations
impl Copy for Orientation
[src]
impl Clone for Orientation
[src]
fn clone(&self) -> Orientation
[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
impl Debug for Orientation
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl PartialEq for Orientation
[src]
fn eq(&self, __arg_0: &Orientation) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Orientation) -> bool
[src]
This method tests for !=
.
impl From<Matrix3<f32>> for Orientation
[src]
fn from(mat: Matrix3<f32>) -> Self
[src]
Performs the conversion.
Reverses the z axis matching the GL coordinate system.