toxi.sim.erosion
Class ErosionFunction

java.lang.Object
  extended by toxi.sim.erosion.ErosionFunction
Direct Known Subclasses:
TalusAngleErosion, ThermalErosion

public abstract class ErosionFunction
extends java.lang.Object

Abstract parent class for various 2D erosion simulations, implemented as sub-classes.


Constructor Summary
ErosionFunction()
           
 
Method Summary
 void erode(float[] elevation, int width, int height)
          Destructively erodes the given array.
abstract  void erodeAt(int x, int y)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ErosionFunction

public ErosionFunction()
Method Detail

erode

public void erode(float[] elevation,
                  int width,
                  int height)
Destructively erodes the given array.

Parameters:
elevation -
width -
height -

erodeAt

public abstract void erodeAt(int x,
                             int y)