Skip To Content ArcGIS for Developers Sign In Dashboard

TransformationMatrix Class

(Esri::ArcGISRuntime::TransformationMatrix)

A transformation matrix consisting of a translation vector and a rotation quaternion. More...

Header: #include <TransformationMatrix>
Since: Esri::ArcGISRuntime 100.6
Inherits: Object

Public Functions

~TransformationMatrix()
TransformationMatrix *addTransformation(TransformationMatrix *matrix, QObject *parent = nullptr) const
double quaternionW() const
double quaternionX() const
double quaternionY() const
double quaternionZ() const
TransformationMatrix *subtractTransformation(TransformationMatrix *matrix, QObject *parent = nullptr) const
double translationX() const
double translationY() const
double translationZ() const
  • 31 public functions inherited from QObject

Static Public Members

TransformationMatrix *createIdentityMatrix(QObject *parent = nullptr)
TransformationMatrix *createWithQuaternionAndTranslation(double quaternionX, double quaternionY, double quaternionZ, double quaternionW, double translationX, double translationY, double translationZ, QObject *parent = nullptr)
  • 10 static public members inherited from QObject

Additional Inherited Members

Detailed Description

A transformation matrix consisting of a translation vector and a rotation quaternion.

Member Function Documentation

TransformationMatrix::~TransformationMatrix()

Destructor.

TransformationMatrix *TransformationMatrix::addTransformation(TransformationMatrix *matrix, QObject *parent = nullptr) const

Adds another transformation matrix to this transformation matrix and returns the result.

Returns nullptr if matrix is nullptr.

  • matrix - The matrix to add.
  • parent - The parent QObject (optional).

[static] TransformationMatrix *TransformationMatrix::createIdentityMatrix(QObject *parent = nullptr)

Creates a TransformationMatrix object with an identity matrix.

  • parent - The parent QObject (optional).

This TransformationMatrix will have no transformation. The values are (0, 0, 0, 1) for x, y, z, w quaternion and (0, 0, 0) for x, y, z translations.

Subtracting another TransformationMatrix from a TransformationMatrix created with this constructor is useful for getting the inverse of that TransformationMatrix: identity matrix - other matrix = inverse(other matrix).

[static] TransformationMatrix *TransformationMatrix::createWithQuaternionAndTranslation(double quaternionX, double quaternionY, double quaternionZ, double quaternionW, double translationX, double translationY, double translationZ, QObject *parent = nullptr)

Creates a transformation matrix using x, y, z, w quaternion and x, y, z translations.

  • quaternionX - The x quaternion of the transformation matrix.
  • quaternionY - The y quaternion of the transformation matrix.
  • quaternionZ - The z quaternion of the transformation matrix.
  • quaternionW - The w quaternion of the transformation matrix.
  • translationX - The x position of the transformation matrix.
  • translationY - The y position of the transformation matrix.
  • translationZ - The z position of the transformation matrix.
  • parent - The parent QObject (optional).

double TransformationMatrix::quaternionW() const

The w quaternion of the transformation matrix.

double TransformationMatrix::quaternionX() const

The x quaternion of the transformation matrix.

double TransformationMatrix::quaternionY() const

The y quaternion of the transformation matrix.

double TransformationMatrix::quaternionZ() const

The z quaternion of the transformation matrix.

TransformationMatrix *TransformationMatrix::subtractTransformation(TransformationMatrix *matrix, QObject *parent = nullptr) const

Subtracts a new matrix from the transformation matrix and returns the result.

Returns nullptr if matrix is nullptr.

  • matrix - The matrix to substract.
  • parent - The parent QObject (optional).

double TransformationMatrix::translationX() const

The x position of the transformation matrix.

double TransformationMatrix::translationY() const

The y position of the transformation matrix.

double TransformationMatrix::translationZ() const

The z position of the transformation matrix.


Feedback on this topic?