Struct cogl::Euler [−][src]
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.
pub fn init_from_quaternion(&mut self, quaternion: &Quaternion)[src]
Initializes a self rotation with the equivalent rotation
represented by the given quaternion.
quaternion
A Euler with the rotation to initialize with
Trait Implementations
impl Clone for Euler[src]
impl Debug for Euler[src]
impl Hash for Euler[src]
fn hash<__H: Hasher>(&self, state: &mut __H)[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
H: Hasher,
impl StaticType for Euler[src]
fn static_type() -> Type[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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T> ToSendValue for T where
T: SetValue + Send + ToValue + ?Sized, [src]
T: SetValue + Send + ToValue + ?Sized,
pub fn to_send_value(&self) -> SendValue[src]
impl<T> ToValue for T where
T: SetValue + ?Sized, [src]
T: SetValue + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,