Class ErosionFunction

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

public abstract class ErosionFunction extends Object
Abstract parent class for various 2D erosion simulations, implemented as sub-classes.
  • Constructor Details

    • ErosionFunction

      public ErosionFunction()
  • Method Details

    • erodeAll

      public void erodeAll()
      Destructively erodes the given array.
      Parameters:
      elevation -
      width -
      height -
    • erodeAt

      public abstract void erodeAt(int x, int y)
    • erodeWithinPolygon

      public void erodeWithinPolygon(Polygon2D poly)
    • setElevation

      public void setElevation(float[] elevation, int width, int height)