pub type Matrix3D = Matrix3D<Number>;
Expand description
computed value of matrix3d()
Aliased Type§
struct Matrix3D {}
Fields§
§m11: f32
§m12: f32
§m13: f32
§m14: f32
§m21: f32
§m22: f32
§m23: f32
§m24: f32
§m31: f32
§m32: f32
§m33: f32
§m34: f32
§m41: f32
§m42: f32
§m43: f32
§m44: f32
Implementations§
source§impl Matrix3D
impl Matrix3D
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 ComputeSquaredDistance for Matrix3D
impl ComputeSquaredDistance for Matrix3D
source§fn compute_squared_distance(&self, other: &Self) -> Result<SquaredDistance, ()>
fn compute_squared_distance(&self, other: &Self) -> Result<SquaredDistance, ()>
Computes the squared distance between two animatable values.
source§impl From<MatrixDecomposed2D> for Matrix3D
impl From<MatrixDecomposed2D> for Matrix3D
source§fn from(decomposed: MatrixDecomposed2D) -> Matrix3D
fn from(decomposed: MatrixDecomposed2D) -> Matrix3D
Recompose a 2D matrix. https://drafts.csswg.org/css-transforms/#recomposing-to-a-2d-matrix
source§impl From<MatrixDecomposed3D> for Matrix3D
impl From<MatrixDecomposed3D> for Matrix3D
source§fn from(decomposed: MatrixDecomposed3D) -> Matrix3D
fn from(decomposed: MatrixDecomposed3D) -> Matrix3D
Recompose a 3D matrix. https://drafts.csswg.org/css-transforms/#recomposing-to-a-3d-matrix
source§impl From<Transform3D<f32, UnknownUnit, UnknownUnit>> for Matrix3D
impl From<Transform3D<f32, UnknownUnit, UnknownUnit>> for Matrix3D
source§fn from(m: Transform3D<CSSFloat>) -> Self
fn from(m: Transform3D<CSSFloat>) -> Self
Converts to this type from the input type.