.. Generated automatically by doc/tools/makerst.py in Godot's source tree. .. DO NOT EDIT THIS FILE, but the doc/base/classes.xml source instead. .. _class_Matrix3: Matrix3 ======= **Category:** Built-In Types Brief Description ----------------- 3x3 matrix datatype. Member Functions ---------------- +--------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Matrix3` | :ref:`Matrix3` **(** :ref:`Quat` from **)** | +--------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Matrix3` | :ref:`Matrix3` **(** :ref:`Vector3` axis, :ref:`float` phi **)** | +--------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Matrix3` | :ref:`Matrix3` **(** :ref:`Vector3` x_axis, :ref:`Vector3` y_axis, :ref:`Vector3` z_axis **)** | +--------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`float` | :ref:`determinant` **(** **)** | +--------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Vector3` | :ref:`get_euler` **(** **)** | +--------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`get_orthogonal_index` **(** **)** | +--------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Vector3` | :ref:`get_scale` **(** **)** | +--------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Matrix3` | :ref:`inverse` **(** **)** | +--------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Matrix3` | :ref:`orthonormalized` **(** **)** | +--------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Matrix3` | :ref:`rotated` **(** :ref:`Vector3` axis, :ref:`float` phi **)** | +--------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Matrix3` | :ref:`scaled` **(** :ref:`Vector3` scale **)** | +--------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`float` | :ref:`tdotx` **(** :ref:`Vector3` with **)** | +--------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`float` | :ref:`tdoty` **(** :ref:`Vector3` with **)** | +--------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`float` | :ref:`tdotz` **(** :ref:`Vector3` with **)** | +--------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Matrix3` | :ref:`transposed` **(** **)** | +--------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Vector3` | :ref:`xform` **(** :ref:`Vector3` v **)** | +--------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Vector3` | :ref:`xform_inv` **(** :ref:`Vector3` v **)** | +--------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------+ Member Variables ---------------- - :ref:`Vector3` **x** - :ref:`Vector3` **y** - :ref:`Vector3` **z** 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 :ref:`Transform`. Member Function Description --------------------------- .. _class_Matrix3_Matrix3: - :ref:`Matrix3` **Matrix3** **(** :ref:`Quat` from **)** Create a matrix from a quaternion. .. _class_Matrix3_Matrix3: - :ref:`Matrix3` **Matrix3** **(** :ref:`Vector3` axis, :ref:`float` phi **)** Create a matrix from an axis vector and an angle. .. _class_Matrix3_Matrix3: - :ref:`Matrix3` **Matrix3** **(** :ref:`Vector3` x_axis, :ref:`Vector3` y_axis, :ref:`Vector3` z_axis **)** Create a matrix from 3 axis vectors. .. _class_Matrix3_determinant: - :ref:`float` **determinant** **(** **)** Return the determinant of the matrix. .. _class_Matrix3_get_euler: - :ref:`Vector3` **get_euler** **(** **)** Return euler angles from the matrix. .. _class_Matrix3_get_orthogonal_index: - :ref:`int` **get_orthogonal_index** **(** **)** .. _class_Matrix3_get_scale: - :ref:`Vector3` **get_scale** **(** **)** .. _class_Matrix3_inverse: - :ref:`Matrix3` **inverse** **(** **)** Return the affine inverse of the matrix. .. _class_Matrix3_orthonormalized: - :ref:`Matrix3` **orthonormalized** **(** **)** Return the orthonormalized version of the matrix (useful to call from time to time to avoid rounding error). .. _class_Matrix3_rotated: - :ref:`Matrix3` **rotated** **(** :ref:`Vector3` axis, :ref:`float` phi **)** Return the rotated version of the matrix, by a given axis and angle. .. _class_Matrix3_scaled: - :ref:`Matrix3` **scaled** **(** :ref:`Vector3` scale **)** Return the scaled version of the matrix, by a 3D scale. .. _class_Matrix3_tdotx: - :ref:`float` **tdotx** **(** :ref:`Vector3` with **)** Transposed dot product with the x axis of the matrix. .. _class_Matrix3_tdoty: - :ref:`float` **tdoty** **(** :ref:`Vector3` with **)** Transposed dot product with the y axis of the matrix. .. _class_Matrix3_tdotz: - :ref:`float` **tdotz** **(** :ref:`Vector3` with **)** Transposed dot product with the z axis of the matrix. .. _class_Matrix3_transposed: - :ref:`Matrix3` **transposed** **(** **)** Return the transposed version of the matrix. .. _class_Matrix3_xform: - :ref:`Vector3` **xform** **(** :ref:`Vector3` v **)** Return a vector transformed by the matrix and return it. .. _class_Matrix3_xform_inv: - :ref:`Vector3` **xform_inv** **(** :ref:`Vector3` v **)** Return a vector transformed by the transposed matrix and return it.