#include <RandCache.h>
Public Member Functions | |
SpiralOrdering (int x, int y) | |
Constructor. | |
RandCache::size_type | operator() (int x, int y) |
Determine the order. | |
Private Attributes | |
int | m_x |
The centre x coordinate of the spiral. | |
int | m_y |
The centre y coordinate of the spiral. |
SpiralOrdering::SpiralOrdering | ( | int | x, | |
int | y | |||
) | [inline] |
Constructor.
x | centre x coordinate of the spiral. | |
y | centre y coordinate of the spiral. |