# Type Alias style::values::computed::transform::Matrix3D

``pub type Matrix3D = Matrix3D<Number>;``
Expand description

computed value of matrix3d()

## Aliased Type§

``````struct Matrix3D {Show 16 fields
pub m11: f32,
pub m12: f32,
pub m13: f32,
pub m14: f32,
pub m21: f32,
pub m22: f32,
pub m23: f32,
pub m24: f32,
pub m31: f32,
pub m32: f32,
pub m33: f32,
pub m34: f32,
pub m41: f32,
pub m42: f32,
pub m43: f32,
pub m44: f32,
}``````

## 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

source

#### pub fn identity() -> Self

Get an identity matrix

source

#### pub fn into_2d(self) -> Result<Matrix, ()>

Convert to a 2D Matrix

source

#### pub fn is_3d(&self) -> bool

Return true if this has 3D components.

source

#### pub fn determinant(&self) -> CSSFloat

Return determinant value.

source

#### pub fn transpose(&self) -> Self

Transpose a matrix.

source

#### pub fn inverse(&self) -> Result<Matrix3D, ()>

Return inverse matrix.

source

#### pub fn pre_mul_point4(&self, pin: &[f32; 4]) -> [f32; 4]

Multiply `pin * self`.

source

#### pub fn multiply(&self, other: &Self) -> Self

Return the multiplication of two 4x4 matrices.

source

#### pub fn scale_by_factor(&mut self, scaling_factor: CSSFloat)

Scale the matrix by a factor.

source

#### 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.

source

#### pub fn set_perspective(&mut self, perspective: &Perspective)

Set perspective on the matrix.

source

#### pub fn apply_translate(&mut self, translate: &Translate3D)

Apply translate on the matrix.

source

#### pub fn apply_scale(&mut self, scale: &Scale3D)

Apply scale on the matrix.

## Trait Implementations§

source§

### impl Animate for Matrix3D

source§

#### fn animate(&self, other: &Self, procedure: Procedure) -> Result<Self, ()>

Animate a value towards another one, given an animation procedure.
source§

### impl ComputeSquaredDistance for Matrix3D

source§

#### fn compute_squared_distance(&self, other: &Self) -> Result<SquaredDistance, ()>

Computes the squared distance between two animatable values.
source§

### impl From<GenericMatrix<f32>> for Matrix3D

source§

#### fn from(m: Matrix) -> Self

Converts to this type from the input type.
source§

source§

source§

source§

source§

### impl From<Transform3D<f32, UnknownUnit, UnknownUnit>> for Matrix3D

source§

#### fn from(m: Transform3D<CSSFloat>) -> Self

Converts to this type from the input type.