Struct cogl::MatrixEntry [−][src]
Implementations
impl MatrixEntry[src]
pub fn calculate_translation(
&self,
entry1: &MatrixEntry
) -> (Bool, f32, f32, f32)[src]
&self,
entry1: &MatrixEntry
) -> (Bool, f32, f32, f32)
Determines if the only difference between two transforms is a
translation and if so returns what the x, y, and z components of
the translation are.
If the difference between the two translations involves anything
other than a translation then the function returns false.
entry1
A second reference transform
x
The destination for the x-component of the translation
y
The destination for the y-component of the translation
z
The destination for the z-component of the translation
Returns
true if the only difference between the transform of
self and the transform of entry1 is a translation,
otherwise false.
pub fn is_identity(&self) -> Bool[src]
Determines whether self is known to represent an identity
transform.
If this returns true then the entry is definitely the identity
matrix. If it returns false it may or may not be the identity
matrix but no expensive comparison is performed to verify it.
Returns
true if self is definitely an identity transform,
otherwise false.
Trait Implementations
impl Clone for MatrixEntry[src]
fn clone(&self) -> MatrixEntry[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Debug for MatrixEntry[src]
impl Hash for MatrixEntry[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 MatrixEntry[src]
fn static_type() -> Type[src]
Auto Trait Implementations
impl RefUnwindSafe for MatrixEntry
impl !Send for MatrixEntry
impl !Sync for MatrixEntry
impl Unpin for MatrixEntry
impl UnwindSafe for MatrixEntry
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>,