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:439
#define JPH_NAMESPACE_END
Definition: Core.h:367
#define JPH_NAMESPACE_BEGIN
Definition: Core.h:361
#define JPH_ASSERT(...)
Definition: IssueReporting.h:33
std::vector< T, STLAllocator< T > > Array
Definition: STLAllocator.h:81
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