11 #include <glm/glm.hpp>
97 double operator() (
int i,
int j)
const{
return ref(i,j);}
100 double& operator() (
int i,
int j) {
101 assert(i<sdim() && j<sdim());
102 return m_matrix[i+j*m_sdim];
129 bool operator== (
const MGMatrix&)
const;
130 bool operator!= (
const MGMatrix&)
const;
135 void convert_to_glMatrix(
140 double determinant()
const;
155 double ref(
int i,
int j)
const;
164 void resize(
int nsdim);
167 int sdim()
const{
return m_sdim;}
184 MGMatrix& set_rotate_2D(
double angle);
188 MGMatrix& set_rotate_2D(
double cval,
double sval);
268 MGMatrix& set_glMatrix(
const double glMat[16]);
287 int dump_size()
const;
MGTransf represents a transformation of a space dimension.
Definition: Transf.h:35
MGIfstream is a class to read the serialized data generated by MGOfstream.
Definition: Ifstream.h:30
std::ostream & operator<<(std::ostream &ostrm, const MGisect &is)
Debug Function.
Definition: isect.h:95
MG_DLL_DECLR MGVector & operator*=(MGVector &v, const MGMatrix &m)
Vector of a general n space dimension.
Definition: Vector.h:26
MG_DLL_DECLR MGVector operator*(const MGVector &v, const MGMatrix &m)
bool is_null() const
Test if this is null.
Definition: Matrix.h:152
MGOfstream is a class to serialize all of the subclasses of MGGel.
Definition: Ofstream.h:31
~MGMatrix()
Definition: Matrix.h:89
int sdim() const
Return space dimension.
Definition: Matrix.h:167
Define a unit vector, is a MGVector.
Definition: Unit_vector.h:17
MGMatrix is a matix of m by m, where m is the space dimension.
Definition: Matrix.h:30