#[repr(C)]pub struct GenericMatrix3D<T> {Show 16 fields
pub m11: T,
pub m12: T,
pub m13: T,
pub m14: T,
pub m21: T,
pub m22: T,
pub m23: T,
pub m24: T,
pub m31: T,
pub m32: T,
pub m33: T,
pub m34: T,
pub m41: T,
pub m42: T,
pub m43: T,
pub m44: T,
}
Fields§
§m11: T
§m12: T
§m13: T
§m14: T
§m21: T
§m22: T
§m23: T
§m24: T
§m31: T
§m32: T
§m33: T
§m34: T
§m41: T
§m42: T
§m43: T
§m44: T
Implementations§
source§impl GenericMatrix3D<f32>
impl GenericMatrix3D<f32>
sourcepub fn determinant(&self) -> CSSFloat
pub fn determinant(&self) -> CSSFloat
Return determinant value.
sourcepub fn scale_by_factor(&mut self, scaling_factor: CSSFloat)
pub fn scale_by_factor(&mut self, scaling_factor: CSSFloat)
Scale the matrix by a factor.
sourcepub fn get_matrix_3x3_part(&self) -> [[f32; 3]; 3]
pub fn get_matrix_3x3_part(&self) -> [[f32; 3]; 3]
Return the matrix 3x3 part (top-left corner). This is used by retrieving the scale and shear factors during decomposing a 3d matrix.
sourcepub fn set_perspective(&mut self, perspective: &Perspective)
pub fn set_perspective(&mut self, perspective: &Perspective)
Set perspective on the matrix.
sourcepub fn apply_translate(&mut self, translate: &Translate3D)
pub fn apply_translate(&mut self, translate: &Translate3D)
Apply translate on the matrix.
sourcepub fn apply_scale(&mut self, scale: &Scale3D)
pub fn apply_scale(&mut self, scale: &Scale3D)
Apply scale on the matrix.
Trait Implementations§
source§impl<T: Clone> Clone for GenericMatrix3D<T>
impl<T: Clone> Clone for GenericMatrix3D<T>
source§fn clone(&self) -> GenericMatrix3D<T>
fn clone(&self) -> GenericMatrix3D<T>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<T: Debug> Debug for GenericMatrix3D<T>
impl<T: Debug> Debug for GenericMatrix3D<T>
source§impl<'de, T> Deserialize<'de> for GenericMatrix3D<T>where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for GenericMatrix3D<T>where
T: Deserialize<'de>,
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<T: Into<f64>> From<GenericMatrix3D<T>> for Transform3D<f64>
impl<T: Into<f64>> From<GenericMatrix3D<T>> for Transform3D<f64>
source§impl From<GenericMatrix3D<f32>> for MatrixDecomposed2D
impl From<GenericMatrix3D<f32>> for MatrixDecomposed2D
source§fn from(matrix: Matrix3D) -> MatrixDecomposed2D
fn from(matrix: Matrix3D) -> MatrixDecomposed2D
Decompose a 2D matrix. https://drafts.csswg.org/css-transforms/#decomposing-a-2d-matrix
source§impl<T> MallocSizeOf for GenericMatrix3D<T>where
T: MallocSizeOf,
impl<T> MallocSizeOf for GenericMatrix3D<T>where
T: MallocSizeOf,
source§fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
Measure the heap usage of all descendant heap-allocated structures, but
not the space taken up by the value itself.
source§impl<T: PartialEq> PartialEq for GenericMatrix3D<T>
impl<T: PartialEq> PartialEq for GenericMatrix3D<T>
source§impl<T> Serialize for GenericMatrix3D<T>where
T: Serialize,
impl<T> Serialize for GenericMatrix3D<T>where
T: Serialize,
source§impl<T> SpecifiedValueInfo for GenericMatrix3D<T>
impl<T> SpecifiedValueInfo for GenericMatrix3D<T>
source§const SUPPORTED_TYPES: u8 = 0u8
const SUPPORTED_TYPES: u8 = 0u8
Supported CssTypes by the given value type. Read more
source§impl<T> ToAnimatedValue for GenericMatrix3D<T>where
T: ToAnimatedValue,
impl<T> ToAnimatedValue for GenericMatrix3D<T>where
T: ToAnimatedValue,
source§type AnimatedValue = GenericMatrix3D<<T as ToAnimatedValue>::AnimatedValue>
type AnimatedValue = GenericMatrix3D<<T as ToAnimatedValue>::AnimatedValue>
The type of the animated value.
source§fn from_animated_value(from: Self::AnimatedValue) -> Self
fn from_animated_value(from: Self::AnimatedValue) -> Self
Converts back an animated value into a computed value.
source§fn to_animated_value(self, context: &Context<'_>) -> Self::AnimatedValue
fn to_animated_value(self, context: &Context<'_>) -> Self::AnimatedValue
Converts this value to an animated value.
source§impl<T> ToComputedValue for GenericMatrix3D<T>where
T: ToComputedValue,
impl<T> ToComputedValue for GenericMatrix3D<T>where
T: ToComputedValue,
source§type ComputedValue = GenericMatrix3D<<T as ToComputedValue>::ComputedValue>
type ComputedValue = GenericMatrix3D<<T as ToComputedValue>::ComputedValue>
The computed value type we’re going to be converted to.
source§fn from_computed_value(from: &Self::ComputedValue) -> Self
fn from_computed_value(from: &Self::ComputedValue) -> Self
Convert a computed value to specified value form. Read more
source§fn to_computed_value(&self, context: &Context<'_>) -> Self::ComputedValue
fn to_computed_value(&self, context: &Context<'_>) -> Self::ComputedValue
Convert a specified value to a computed value, using itself and the data
inside the
Context
.source§impl<T> ToCss for GenericMatrix3D<T>where
T: ToCss,
impl<T> ToCss for GenericMatrix3D<T>where
T: ToCss,
source§impl<T> ToResolvedValue for GenericMatrix3D<T>where
T: ToResolvedValue,
impl<T> ToResolvedValue for GenericMatrix3D<T>where
T: ToResolvedValue,
source§type ResolvedValue = GenericMatrix3D<<T as ToResolvedValue>::ResolvedValue>
type ResolvedValue = GenericMatrix3D<<T as ToResolvedValue>::ResolvedValue>
The resolved value type we’re going to be converted to.
source§fn from_resolved_value(from: Self::ResolvedValue) -> Self
fn from_resolved_value(from: Self::ResolvedValue) -> Self
Convert a resolved value to resolved value form.
source§fn to_resolved_value(self, context: &Context<'_>) -> Self::ResolvedValue
fn to_resolved_value(self, context: &Context<'_>) -> Self::ResolvedValue
Convert a resolved value to a resolved value.
source§impl<T> ToShmem for GenericMatrix3D<T>where
T: ToShmem,
impl<T> ToShmem for GenericMatrix3D<T>where
T: ToShmem,
impl<T: Copy> Copy for GenericMatrix3D<T>
impl<T> StructuralPartialEq for GenericMatrix3D<T>
Auto Trait Implementations§
impl<T> Freeze for GenericMatrix3D<T>where
T: Freeze,
impl<T> RefUnwindSafe for GenericMatrix3D<T>where
T: RefUnwindSafe,
impl<T> Send for GenericMatrix3D<T>where
T: Send,
impl<T> Sync for GenericMatrix3D<T>where
T: Sync,
impl<T> Unpin for GenericMatrix3D<T>where
T: Unpin,
impl<T> UnwindSafe for GenericMatrix3D<T>where
T: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§impl<T> MaybeBoxed<Box<T>> for T
impl<T> MaybeBoxed<Box<T>> for T
source§fn maybe_boxed(self) -> Box<T>
fn maybe_boxed(self) -> Box<T>
Convert
source§impl<T> MaybeBoxed<T> for T
impl<T> MaybeBoxed<T> for T
source§fn maybe_boxed(self) -> T
fn maybe_boxed(self) -> T
Convert