mercator  0.4.0
A terrain generation library for the Worldforge system.
SpiralOrdering Class Reference

A spiral around x,y. More...

#include <RandCache.h>

Inheritance diagram for SpiralOrdering:
Collaboration diagram for SpiralOrdering:

Public Member Functions

 SpiralOrdering (int x, int y)
 Constructor. More...
 
RandCache::size_type operator() (int x, int y) override
 Determine the order. More...
 

Detailed Description

A spiral around x,y.

Definition at line 99 of file RandCache.h.

Constructor & Destructor Documentation

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

Constructor.

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

Definition at line 111 of file RandCache.h.

Member Function Documentation

RandCache::size_type SpiralOrdering::operator() ( int  x,
int  y 
)
inlineoverridevirtual

Determine the order.

Reimplemented from ZeroSpiralOrdering.

Definition at line 112 of file RandCache.h.

References ZeroSpiralOrdering::operator()().


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