mercator  0.4.0
A terrain generation library for the Worldforge system.
Mercator::Matrix< COLS, ROWS, FloatType > Class Template Reference

A fixed sized array of objects. More...

#include <Matrix.h>

Public Member Functions

 Matrix ()=default
 Constructor for the Matrix. More...
 
FloatType & operator() (unsigned int col, unsigned int row)
 Accessor for modifying the array. More...
 
const FloatType & operator() (unsigned int col, unsigned int row) const
 Accessor for the array. More...
 
FloatType & operator[] (unsigned int idx)
 Accessor for accessing the array as one dimensional. More...
 

Detailed Description

template<unsigned int COLS, unsigned int ROWS, typename FloatType = float>
class Mercator::Matrix< COLS, ROWS, FloatType >

A fixed sized array of objects.

Mainly used to store the control points in a Segment.

Definition at line 14 of file Matrix.h.

Constructor & Destructor Documentation

template<unsigned int COLS, unsigned int ROWS, typename FloatType = float>
Mercator::Matrix< COLS, ROWS, FloatType >::Matrix ( )
default

Constructor for the Matrix.

Member Function Documentation

template<unsigned int COLS, unsigned int ROWS, typename FloatType = float>
FloatType& Mercator::Matrix< COLS, ROWS, FloatType >::operator() ( unsigned int  col,
unsigned int  row 
)
inline

Accessor for modifying the array.

Definition at line 23 of file Matrix.h.

template<unsigned int COLS, unsigned int ROWS, typename FloatType = float>
const FloatType& Mercator::Matrix< COLS, ROWS, FloatType >::operator() ( unsigned int  col,
unsigned int  row 
) const
inline

Accessor for the array.

Definition at line 28 of file Matrix.h.

template<unsigned int COLS, unsigned int ROWS, typename FloatType = float>
FloatType& Mercator::Matrix< COLS, ROWS, FloatType >::operator[] ( unsigned int  idx)
inline

Accessor for accessing the array as one dimensional.

Definition at line 33 of file Matrix.h.


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