Struct cogl::MatrixEntry[][src]

pub struct MatrixEntry(_);

Implementations

impl MatrixEntry[src]

pub fn calculate_translation(
    &self,
    entry1: &MatrixEntry
) -> (Bool, f32, f32, f32)
[src]

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]

impl Debug for MatrixEntry[src]

impl Hash for MatrixEntry[src]

impl StaticType for MatrixEntry[src]

Auto Trait Implementations

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.