[][src]Struct rlbot::flat::Quaternion

#[repr(C)]
pub struct Quaternion { /* fields omitted */ }

Expresses the rotation state of an object. Learn about quaternions here: https://en.wikipedia.org/wiki/Quaternions_and_spatial_rotation You can tinker with them here to build an intuition: https://quaternions.online/

Methods

impl Quaternion[src]

pub fn new<'a>(_x: f32, _y: f32, _z: f32, _w: f32) -> Self[src]

pub fn x<'a>(&'a self) -> f32[src]

pub fn y<'a>(&'a self) -> f32[src]

pub fn z<'a>(&'a self) -> f32[src]

pub fn w<'a>(&'a self) -> f32[src]

Trait Implementations

impl PartialEq<Quaternion> for Quaternion[src]

impl Copy for Quaternion[src]

impl Clone for Quaternion[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for Quaternion[src]

impl SafeSliceAccess for Quaternion[src]

impl<'b> Push for Quaternion[src]

type Output = Quaternion

fn size() -> usize[src]

fn alignment() -> PushAlignment[src]

impl<'b> Push for &'b Quaternion[src]

type Output = Quaternion

fn size() -> usize[src]

fn alignment() -> PushAlignment[src]

impl<'a> Follow<'a> for Quaternion[src]

type Inner = &'a Quaternion

impl<'a> Follow<'a> for &'a Quaternion[src]

type Inner = &'a Quaternion

Auto Trait Implementations

impl Send for Quaternion

impl Sync for Quaternion

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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

impl<T> From<T> for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

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

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

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

impl<T> Scalar for T where
    T: Copy + PartialEq<T> + Any + Debug
[src]

fn is<T>() -> bool where
    T: Scalar
[src]

Tests if Self the same as the type T Read more

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>,