32 lines
753 B
C++
32 lines
753 B
C++
#ifndef _TXLMTRX_HPP_
|
|
#define _TXLMTRX_HPP_
|
|
#include <mdiwin/windows.hpp>
|
|
#include <mdiwin/types.hpp>
|
|
class TranslationMatrix
|
|
{
|
|
public:
|
|
TranslationMatrix(int rows,int cols,int offsetRows,int offsetCols,UHUGE **inputPtr,UHUGE **outputPtr);
|
|
~TranslationMatrix();
|
|
void performTranslation(void);
|
|
private:
|
|
UHUGE **mInputPtr;
|
|
UHUGE **mOutputPtr;
|
|
int mRows;
|
|
int mCols;
|
|
int mOffsetRows;
|
|
int mOffsetCols;
|
|
static smTransformMatrix[][2];
|
|
};
|
|
|
|
inline
|
|
TranslationMatrix::TranslationMatrix(int rows,int cols,int offsetRows,int offsetCols,UHUGE **inputPtr,UHUGE **outputPtr)
|
|
: mInputPtr(inputPtr), mOutputPtr(outputPtr), mRows(rows), mCols(cols),
|
|
mOffsetRows(offsetRows), mOffsetCols(offsetCols)
|
|
{
|
|
}
|
|
|
|
inline
|
|
TranslationMatrix::~TranslationMatrix()
|
|
{
|
|
}
|
|
#endif |