Matrix Class

Header: #include "easyar/matrix.hpp"
Inherited By: Vec

Description

Matrix represents a m x n matrix.

Public Functions

Matrix()
explicit Matrix(const _Tp* vals)

Public Attributes

\_Tp    data\[m\*n\]
bool operator == (const Matrix<_Tp, m, n>& m1, const Matrix<_Tp, m, n>& m2)
bool operator != (const Matrix<_Tp, m, n>& m1, const Matrix<_Tp, m, n>& m2)
typedef Matrix Matrix34F
typedef Matrix Matrix44F

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.

results matching ""

    No results matching ""