My Project
Public Member Functions | List of all members
GMatrix Class Reference

Define geometric matrix. More...

#include "geometry/gmatrix.h"

Public Member Functions

 GMatrix ()
 
 GMatrix (const GMatrix &other)
 
 GMatrix (GMatrix &&other)
 
 ~GMatrix ()
 
GMatrixoperator= (GMatrix other)
 
GVectoroperator[] (const unsigned long index)
 
const GVectoroperator[] (const unsigned long index) const
 
GMatrix operator- ()
 
GMatrix operator* (const double value)
 
GMatrix operator* (const GMatrix &other)
 
bool inverse ()
 
GMatrix transposition ()
 

Detailed Description

Define geometric matrix.

Geometric matrix 4x4

Definition at line 24 of file gmatrix.h.

Constructor & Destructor Documentation

§ GMatrix() [1/3]

GMatrix::GMatrix ( )

Emty constructor. Creates matrix and sets it with zero values

Definition at line 5 of file gmatrix.cpp.

§ GMatrix() [2/3]

GMatrix::GMatrix ( const GMatrix other)

Constructor. Copies incoming matrix.

Parameters
[in]otherSource matrix to copy.

Definition at line 14 of file gmatrix.cpp.

§ GMatrix() [3/3]

GMatrix::GMatrix ( GMatrix &&  other)

Constructor. Transfer incoming matrix.

Parameters
[in]otherSource matrix to transfer.

Definition at line 22 of file gmatrix.cpp.

§ ~GMatrix()

GMatrix::~GMatrix ( )

Destructor. Clears current matrix.

Definition at line 30 of file gmatrix.cpp.

Member Function Documentation

§ inverse()

bool GMatrix::inverse ( )

Inverse current matrix

Returns
true if success, else in other case
Author
silent_1991 : http://www.cyberforum.ru/cpp-beginners/thread188159.html

Definition at line 96 of file gmatrix.cpp.

Here is the caller graph for this function:

§ operator*() [1/2]

GMatrix GMatrix::operator* ( const double  value)

Multiply each item of matrix by incoming value

Parameters
[in]valueValue to multiply
Returns
Matrix after multiply

Definition at line 63 of file gmatrix.cpp.

§ operator*() [2/2]

GMatrix GMatrix::operator* ( const GMatrix other)

Multiply matrix with incoming matrix

Parameters
[in]otherMatrix to multiply
Returns
Matrix after multiply

Definition at line 77 of file gmatrix.cpp.

§ operator-()

GMatrix GMatrix::operator- ( )

Multiply each item of matrix by (-1)

Returns
Matrix after multiply

Definition at line 56 of file gmatrix.cpp.

§ operator=()

GMatrix & GMatrix::operator= ( GMatrix  other)

Sets matrix with sourse`s matrix values

Parameters
[in]otherSource matrix to copy
Returns
GMatrix Current matrix

Definition at line 35 of file gmatrix.cpp.

§ operator[]() [1/2]

GVector & GMatrix::operator[] ( const unsigned long  index)

Chooses row by index

Parameters
[in]indexIndex of choosen row
Returns
Row defined by GVector

Definition at line 46 of file gmatrix.cpp.

§ operator[]() [2/2]

const GVector & GMatrix::operator[] ( const unsigned long  index) const

Const method. Chooses row by index

Parameters
[in]indexIndex of choosen row
Returns
Row defined by GVector

Definition at line 51 of file gmatrix.cpp.

§ transposition()

GMatrix GMatrix::transposition ( )

Definition at line 171 of file gmatrix.cpp.

Here is the caller graph for this function:

The documentation for this class was generated from the following files: