YAGE  0.02
Yet Another Game Engine
Public Member Functions | Protected Attributes | List of all members
yage::Matrix< Rows, Cols, Type > Class Template Reference

Base Matrix class used by other similar classes. More...

#include <matrix.hpp>

Public Member Functions

 Matrix ()
 Initializes the size of the data_ vector.
 
int rowSize () const
 Returns the row size of the Matrix.
 
int colSize () const
 Returns the column size of the Matrixxs.
 
Matrix< 1, Cols, Type > getRow (int row) const
 Return the row specified row as a Matrix with only one row. More...
 

Protected Attributes

std::vector< Type > data_
 Vector containing the data of the matrix.
 

Detailed Description

template<int Rows = 4, int Cols = 4, class Type = double>
class yage::Matrix< Rows, Cols, Type >

Base Matrix class used by other similar classes.

Matrix class

This is the base matrix class that can be used by all the other matrix like data structures.

Member Function Documentation

◆ getRow()

template<int Rows = 4, int Cols = 4, class Type = double>
Matrix<1, Cols, Type> yage::Matrix< Rows, Cols, Type >::getRow ( int  row) const
inline

Return the row specified row as a Matrix with only one row.

Parameters
[in]rowRow number to be returned

Returns the row that is specified by the row variables.


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