15 DynMatrix(
uint inRows,
uint inCols) : mRows(inRows), mCols(inCols) { mElements.resize(inRows * inCols); }
18 float operator () (
uint inRow,
uint inCol)
const {
JPH_ASSERT(inRow < mRows && inCol < mCols);
return mElements[inRow * mCols + inCol]; }
19 float & operator () (
uint inRow,
uint inCol) {
JPH_ASSERT(inRow < mRows && inCol < mCols);
return mElements[inRow * mCols + inCol]; }
unsigned int uint
Definition: Core.h:452
#define JPH_NAMESPACE_END
Definition: Core.h:378
#define JPH_NAMESPACE_BEGIN
Definition: Core.h:372
#define JPH_ASSERT(...)
Definition: IssueReporting.h:33
Dynamic resizable matrix class.
Definition: DynMatrix.h:11
DynMatrix(const DynMatrix &)=default
Constructor.
uint GetCols() const
Get dimensions.
Definition: DynMatrix.h:22
uint GetRows() const
Definition: DynMatrix.h:23
DynMatrix(uint inRows, uint inCols)
Definition: DynMatrix.h:15