[][src]Module gl_matrix::mat2

2x2 Matrix

Functions

add

Adds two mat2's.

adjoint

Calculates the adjugate of a mat2.

clone

Creates a new mat2 initialized with values from an existing matrix.

copy

Copy the values from one mat2 to another.

create

Creates a new identity mat2.

determinant

Calculates the determinant of a mat2.

equals

Returns whether or not the matrices have approximately the same elements in the same position.

exact_equals

Returns whether or not the matrices have exactly the same elements in the same position (when compared with ==).

frob

Returns Frobenius norm of a mat2.

from_rotation

Creates a matrix from a given angle.

from_scaling

Creates a matrix from a vector scaling.

from_values

Create a new mat2 with the given values.

identity

Set a mat2 to the identity matrix.

invert

Inverts a mat2.

ldu

Returns L, D and U matrices (Lower triangular, Diagonal and Upper triangular) by factorizing the input matrix.

mul

Alias for mat2::multiply.

multiply

Multiplies two mat2's.

multiply_scalar

Multiply each element of the matrix by a scalar.

multiply_scalar_and_add

Adds two mat2's after multiplying each element of the second operand by a scalar value.

rotate

Rotates a mat2 by the given angle.

scale

Scales the mat2 by the dimensions in the given vec2.

set

Set the components of a mat2 to the given values.

string

Returns a string representation of a mat2.

sub

Alias for mat2::subtract.

subtract

Subtracts matrix b from matrix a.

transpose

Transpose the values of a mat2.