Struct ux::prelude::dx::MatrixEntry [−][src]
pub struct MatrixEntry(_);
Implementations
impl MatrixEntry[src]
pub fn calculate_translation(
&self,
other: &MatrixEntry
) -> (bool, f32, f32, f32)[src]
&self,
other: &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.
other
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 other is a translation,
otherwise false.
pub fn get(&self) -> (Matrix, Matrix)[src]
Resolves the current self transform into a Matrix by
combining the sequence of operations that have been applied to
build up the current transform.
There are two possible ways that this function may return its
result depending on whether it’s possible to directly point
to an internal Matrix or whether the result needs to be
composed of multiple operations.
If an internal matrix contains the required result then this
function will directly return a pointer to that matrix, otherwise
if the function returns None then matrix will be initialized
to match the transform of self.
<note>``matrix will be left untouched if a direct pointer is
returned.</note>
matrix
The potential destination for the transform as a matrix
Returns
A direct pointer to a Matrix transform or None
and in that case matrix will be initialized with
the effective transform represented by self.
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]
pub fn clone(&self) -> MatrixEntry[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Debug for MatrixEntry[src]
impl Eq for MatrixEntry[src]
impl Ord for MatrixEntry[src]
pub fn cmp(&self, other: &MatrixEntry) -> Ordering[src]
#[must_use]pub fn max(self, other: Self) -> Self1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self1.50.0[src]
impl PartialEq<MatrixEntry> for MatrixEntry[src]
pub fn eq(&self, other: &MatrixEntry) -> bool[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool1.0.0[src]
impl PartialOrd<MatrixEntry> for MatrixEntry[src]
pub fn partial_cmp(&self, other: &MatrixEntry) -> Option<Ordering>[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool1.0.0[src]
impl StaticType for MatrixEntry[src]
pub 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>,