TransformationMatrix Class

  • TransformationMatrix
  • class Esri::ArcGISRuntime::TransformationMatrix

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

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

    This class was introduced in Esri::ArcGISRuntime 100.6.

    Public Functions

    virtual ~TransformationMatrix() override
    Esri::ArcGISRuntime::TransformationMatrix *addTransformation(Esri::ArcGISRuntime::TransformationMatrix *matrix, QObject *parent = nullptr) const
    double quaternionW() const
    double quaternionX() const
    double quaternionY() const
    double quaternionZ() const
    Esri::ArcGISRuntime::TransformationMatrix *subtractTransformation(Esri::ArcGISRuntime::TransformationMatrix *matrix, QObject *parent = nullptr) const
    double translationX() const
    double translationY() const
    double translationZ() const

    Static Public Members

    Esri::ArcGISRuntime::TransformationMatrix *createIdentityMatrix(QObject *parent = nullptr)
    Esri::ArcGISRuntime::TransformationMatrix *createWithQuaternionAndTranslation(double quaternionX, double quaternionY, double quaternionZ, double quaternionW, double translationX, double translationY, double translationZ, QObject *parent = nullptr)

    Detailed Description

    Member Function Documentation

    [override virtual] TransformationMatrix::~TransformationMatrix()

    Destructor.

    Esri::ArcGISRuntime::TransformationMatrix *TransformationMatrix::addTransformation(Esri::ArcGISRuntime::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] Esri::ArcGISRuntime::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 a TransformationMatrix from an identity matrix is useful for getting the inverse of that transformation matrix, i.e. identity matrix - other matrix = inverse(other matrix) return_description: A TransformationMatrix.

    [static] Esri::ArcGISRuntime::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.

    Esri::ArcGISRuntime::TransformationMatrix *TransformationMatrix::subtractTransformation(Esri::ArcGISRuntime::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.

    Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.