Matrix44

class omni.ui.scene.Matrix44

Bases: pybind11_object

Stores a 4x4 matrix of float elements. A basic type. Matrices are defined to be in row-major order. The matrix mode is required to define the matrix that resets the transformation to fit the geometry into NDC, Screen space, or rotate it to the camera direction.

Methods

__init__(*args, **kwargs)

Overloaded function.

get_inverse(*args, **kwargs)

Overloaded function.

get_rotation_matrix(x, y, z[, degrees])

Creates a matrix to specify a rotation around each axis.

get_scale_matrix(x, y, z)

Creates a matrix to specify a scaling with the given scale factor per axis.

get_translation_matrix(x, y, z)

Creates a matrix to specify a translation at the given coordinates.

set_look_at_view(self, arg0)

Attributes

inversed

__init__(*args, **kwargs)

Overloaded function.

  1. __init__(self: omni.ui_scene._scene.Matrix44, m: omni.ui_scene._scene.Matrix44) -> None

  2. __init__(self: omni.ui_scene._scene.Matrix44, x: float = 1.0) -> None

  3. __init__(self: omni.ui_scene._scene.Matrix44, a1: float, a2: float, a3: float, a4: float, a5: float, a6: float, a7: float, a8: float, a9: float, a10: float, a11: float, a12: float, a13: float, a14: float, a15: float, a16: float) -> None

get_inverse(*args, **kwargs)

Overloaded function.

  1. get_inverse(self: omni.ui_scene._scene.Matrix44) -> omni.ui_scene._scene.Matrix44

  2. get_inverse(self: omni.ui_scene._scene.Matrix44) -> omni.ui_scene._scene.Matrix44

static get_rotation_matrix(x: float, y: float, z: float, degrees: bool = False) omni.ui_scene._scene.Matrix44

Creates a matrix to specify a rotation around each axis.

### Arguments:

`degrees :`

true if the angles are specified in degrees

static get_scale_matrix(x: float, y: float, z: float) omni.ui_scene._scene.Matrix44

Creates a matrix to specify a scaling with the given scale factor per axis.

static get_translation_matrix(x: float, y: float, z: float) omni.ui_scene._scene.Matrix44

Creates a matrix to specify a translation at the given coordinates.

set_look_at_view(self: omni.ui_scene._scene.Matrix44, arg0: omni.ui_scene._scene.Matrix44) omni.ui_scene._scene.Matrix44