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

A spiral around 0,0. More...

#include <RandCache.h>

Inheritance diagram for ZeroSpiralOrdering:
Collaboration diagram for ZeroSpiralOrdering:

Public Member Functions

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

Detailed Description

A spiral around 0,0.

Definition at line 78 of file RandCache.h.

Member Function Documentation

◆ operator()()

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

Determine the order.

Implements RandCache::Ordering.

Reimplemented in SpiralOrdering.

Definition at line 81 of file RandCache.h.

Referenced by SpiralOrdering::operator()().


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