Struct cogl::Euler[][src]

pub struct Euler(_);

Implementations

impl Euler[src]

pub fn init(&mut self, heading: f32, pitch: f32, roll: f32)[src]

Initializes self to represent a rotation of x_angle degrees around the x axis, then y_angle degrees around the y_axis and z_angle degrees around the z axis.

heading

Angle to rotate around an object’s y axis

pitch

Angle to rotate around an object’s x axis

roll

Angle to rotate around an object’s z axis

pub fn init_from_matrix(&mut self, matrix: &Matrix)[src]

Extracts a euler rotation from the given matrix and initializses self with the component x, y and z rotation angles.

matrix

A Matrix containing a rotation, but no scaling, mirroring or skewing.

Trait Implementations

impl Clone for Euler[src]

impl Debug for Euler[src]

impl Eq for Euler[src]

impl Ord for Euler[src]

impl PartialEq<Euler> for Euler[src]

impl PartialOrd<Euler> for Euler[src]

impl StaticType for Euler[src]

Auto Trait Implementations

impl RefUnwindSafe for Euler

impl !Send for Euler

impl !Sync for Euler

impl Unpin for Euler

impl UnwindSafe for Euler

Blanket Implementations

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

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

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

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

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

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

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToSendValue for T where
    T: SetValue + Send + ToValue + ?Sized
[src]

impl<T> ToValue for T where
    T: SetValue + ?Sized
[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.