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]
fn cmp(&self, other: &Euler) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]
pub fn max(self, other: Self) -> Self#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]
pub fn min(self, other: Self) -> Self#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
#[must_use]
pub fn clamp(self, min: Self, max: Self) -> Selfimpl PartialEq<Euler> for Euler
[src]
impl PartialOrd<Euler> for Euler
[src]
fn partial_cmp(&self, other: &Euler) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn lt(&self, other: &Rhs) -> bool#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn le(&self, other: &Rhs) -> bool#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn gt(&self, other: &Rhs) -> bool#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn ge(&self, other: &Rhs) -> boolimpl 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>,