Struct geomath::matrix::Matrix4[][src]

pub struct Matrix4 {
Show 16 fields pub xx: f64, pub xy: f64, pub xz: f64, pub xw: f64, pub yx: f64, pub yy: f64, pub yz: f64, pub yw: f64, pub zx: f64, pub zy: f64, pub zz: f64, pub zw: f64, pub wx: f64, pub wy: f64, pub wz: f64, pub ww: f64,
}
Expand description

4x4 matrix

Fields

xx: f64xy: f64xz: f64xw: f64yx: f64yy: f64yz: f64yw: f64zx: f64zy: f64zz: f64zw: f64wx: f64wy: f64wz: f64ww: f64

Implementations

Trait Implementations

The resulting type after applying the + operator.

Performs the + operation. Read more

Performs the += operation. Read more

Get the determinant of the matrix

Set inverse matrix

Set transposed matrix

Set adjugate matrix

Get the inverse matrix

Get the transposed matrix

Get the adjugate matrix

The resulting type after applying the | operator.

Performs the | operation. Read more

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

The resulting type after applying the / operator.

Performs the / operation. Read more

Performs the /= operation. Read more

Performs the conversion.

Object filled with zeros

Object filled with ones

Set the linear interpolation

Set the Hermite’s interpolation

Set the Bezier’s interpolation

Get linear interpolation

Get cubic Hermite’s interpolation, ie. with two tangent values

Get cubic Bezier’s interpolation, ie. with two control points

Dot product of the two objects

Squared magnitude of an object

Magnitude of an object

Squared distance between the two objects

Distance between the two objects

Normalizes the vector, ie. sets magnitude to 1 without changing direction

Get the normalized vector, ie. vector with same direction and magnitude 1

The resulting type after applying the * operator.

Performs the * operation. Read more

The resulting type after applying the * operator.

Performs the * operation. Read more

The resulting type after applying the * operator.

Performs the * operation. Read more

The resulting type after applying the * operator.

Performs the * operation. Read more

Performs the *= operation. Read more

Performs the *= operation. Read more

Performs the *= operation. Read more

Performs the *= operation. Read more

The resulting type after applying the - operator.

Performs the unary - operation. Read more

The resulting type after applying the ! operator.

Performs the unary ! operation. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

The resulting type after applying the % operator.

Performs the % operation. Read more

Fills an object with zeros

Fills a object with ones

Fills a object with a given value

Set a rigid body matrix from the given rotation matrix and translation vector

Get a rigid body matrix from rotation matrix and translation vector

Get the rows of a matrix

Set the rows of a matrix

Get a matrix from rows array

Set a similarity matrix from scale factor, rotation matrix and translation vector

Get a similarity matrix from scale factor, rotation matrix and translation vector

The resulting type after applying the - operator.

Performs the - operation. Read more

Performs the -= operation. Read more

Set a translation matrix from translation vector

Get a translation matrix from translation vector

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.