class_matrix3 - vkbsb/godot GitHub Wiki

Matrix3

####Category: Built-In Types

Brief Description

3x3 matrix datatype.

Member Functions

Member Variables

Description

3x3 matrix used for 3D rotation and scale. Contains 3 vector fields x,y and z. Can also be accessed as array of 3D vectors. Almost always used as orthogonal basis for a Transform.

Member Function Description

determinant

Return the determinant of the matrix.

get_euler

Return euler angles from the matrix.

inverse

Return the affine inverse of the matrix.

orthonormalized

Return the orthonormalized version of the matrix (useful to call from time to time to avoid rounding error).

rotated

Return the rotated version of the matrix, by a given axis and angle.

scaled

Return the scaled version of the matrix, by a 3D scale.

tdotx

Transposed dot product with the x axis of the matrix.

tdoty

Transposed dot product with the y axis of the matrix.

tdotz

Transposed dot product with the z axis of the matrix.

transposed

Return the transposed version of the matrix.

xform

Return a vector transformed by the matrix and return it.

xform_inv

Return a vector transformed by the transposed matrix and return it.

Matrix3

Create a matrix from 3 axis vectors.

Matrix3

Create a matrix from 3 axis vectors.

Matrix3

  • void Matrix3 ( Quat from )

Create a matrix from 3 axis vectors.