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 Copy for Orientationimpl Clone for Orientation[src]
impl Clone for Orientationfn clone(&self) -> Orientation[src]
fn clone(&self) -> OrientationReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl Debug for Orientation[src]
impl Debug for Orientationfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl PartialEq for Orientation[src]
impl PartialEq for Orientationfn eq(&self, other: &Orientation) -> bool[src]
fn eq(&self, other: &Orientation) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Orientation) -> bool[src]
fn ne(&self, other: &Orientation) -> boolThis method tests for !=.
impl From<Matrix3<f32>> for Orientation[src]
impl From<Matrix3<f32>> for Orientationfn from(mat: Matrix3<f32>) -> Self[src]
fn from(mat: Matrix3<f32>) -> SelfPerforms the conversion.
Reverses the z axis matching the GL coordinate system.
impl Default for Orientation[src]
impl Default for OrientationAuto Trait Implementations
impl Send for Orientation
impl Send for Orientationimpl Sync for Orientation
impl Sync for Orientation