Mercator
Public Member Functions | Private Attributes | List of all members
SpiralOrdering Class Reference

A spiral around x,y. More...

#include <RandCache.h>

Inheritance diagram for SpiralOrdering:
ZeroSpiralOrdering RandCache::Ordering

Public Member Functions

 SpiralOrdering (int x, int y)
 Constructor. More...
 
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.
 

Detailed Description

A spiral around x,y.

Constructor & Destructor Documentation

SpiralOrdering::SpiralOrdering ( int  x,
int  y 
)
inline

Constructor.

Parameters
xcentre x coordinate of the spiral.
ycentre y coordinate of the spiral.

The documentation for this class was generated from the following file: