Package toxi.sim.erosion
Class ErosionFunction
java.lang.Object
toxi.sim.erosion.ErosionFunction
- Direct Known Subclasses:
TalusAngleErosion,ThermalErosion
Abstract parent class for various 2D erosion simulations, implemented as
sub-classes.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiderodeAll()Destructively erodes the given array.abstract voiderodeAt(int x, int y) voiderodeWithinPolygon(Polygon2D poly) voidsetElevation(float[] elevation, int width, int height)
-
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
-
setElevation
public void setElevation(float[] elevation, int width, int height)
-