Getting Started with EasyAR
Header:#include "easyar/matrix.hpp"
Inherited By:Vec

Description

Matrix represents a m x n matrix.

Public Functions

Matrix()
explicitMatrix(const _Tp* vals)

Public Attributes

_Tpdata[m*n]

Related Non-Members

booloperator == (const Matrix<_Tp, m, n>& m1, const Matrix<_Tp, m, n>& m2)
booloperator != (const Matrix<_Tp, m, n>& m1, const Matrix<_Tp, m, n>& m2)

Related Type-Defines

typedef MatrixMatrix34F
typedef MatrixMatrix44F

Matrix()

Creates a Matrix object. Its data is zero-initialized.

explicit Matrix(const _Tp* vals)

Creates a Matrix object and copies all data from vals into the matrix.

_Tp data[m*n]

Raw data array of matrix.

bool operator == (const Matrix<_Tp, m, n>& m1, const Matrix<_Tp, m, n>& m2)

Equality operator. Returns true if all data in m1 and m2 are the same, otherwise returns false.

bool operator != (const Matrix<_Tp, m, n>& m1, const Matrix<_Tp, m, n>& m2)

Inequality operator. Returns true if not all data in m1 and m2 are the same, otherwise returns false.

typedef Matrix Matrix34F

3 x 4 matrix of float data.

typedef Matrix Matrix44F

4 x 4 matrix of float data.