template class glm_ext::TransMat

Overview

Template wrapper for glm matrix holding matrix and its inverse. More…

#include <ExtGLM.h>

template <int N>
class TransMat {
public:
    // construction

    TransMat();
    TransMat(const MyMat& new_mat);

    // methods

    void Set(const MyMat& new_mat);
    void SetInverse(const MyMat& inv_mat);
    const MyMat& Get() const;
    const MyMat& GetInverse() const;
};

Detailed Documentation

Template wrapper for glm matrix holding matrix and its inverse.

Construction

TransMat()

Creates identity.

TransMat(const MyMat& new_mat)

Creates matrix with a defined value.

Methods

void Set(const MyMat& new_mat)

Sets matrix to a defined value.

void SetInverse(const MyMat& inv_mat)

Sets inverse of the matrix.

const MyMat& Get() const

Returns matrix.

const MyMat& GetInverse() const

Returns inverse of matrix.