#include <mat2.hh>
Public Member Functions | |
Mat2 () | |
Mat2 (Real i00, Real i01, Real i10, Real i11) | |
Mat2 (const Mat2 &m) | |
Mat2 (const Real[4]) | |
Mat2 & | operator= (const Mat2 &m) |
bool | operator== (const Mat2 &rhs) const |
const Real & | At (std::size_t r, std::size_t c) const |
Real & | At (std::size_t r, std::size_t c) |
Real & | operator() (std::size_t r, std::size_t c) |
const Real & | operator() (std::size_t r, std::size_t c) const |
Mat2 & | operator+= (const Mat2 &rhs) |
Mat2 & | operator-= (const Mat2 &rhs) |
Mat2 & | operator*= (const Real d) |
Mat2 & | operator/= (const Real d) |
Mat2 & | operator*= (const Mat2 &m) |
Real * | Data () |
const Real * | Data () const |
Static Public Member Functions | |
static Mat2 | Identity () |
Definition at line 33 of file mat2.hh.
Mat2 | ( | ) |
Default initialization, identity matrix.
In with 4 values in row-major order.
row-major order means that the matrix
| a b | | c d |
is initialized with (a,b, c,d)
Mat2 | ( | const | Real[4] | ) | [explicit] |
initialization from array
Real& At | ( | std::size_t | r, | |
std::size_t | c | |||
) | [inline] |
const Real& At | ( | std::size_t | r, | |
std::size_t | c | |||
) | const [inline] |
static Mat2 Identity | ( | ) | [static] |
const Real& operator() | ( | std::size_t | r, | |
std::size_t | c | |||
) | const [inline] |
Real& operator() | ( | std::size_t | r, | |
std::size_t | c | |||
) | [inline] |
bool operator== | ( | const Mat2 & | rhs | ) | const |
comparable