This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// base GridMap class. Allows from mapping from an X x Y grid of | |
// T values to an MX x MY grid of T values (where | |
// MX and MY are greater than X and Y respectively), using linear | |
// interpolation to fill in the gaps. Optionally allows for rotating | |
// around the center point. Subclasses should provide an implementation | |
// for the interpolate method, appropriate to the type of data being mapped | |
template<int X, int Y, int MX, int MY, class T> class AbstractGridMap { | |
int revcosval,revsinval; | |
uint8_t angle; |