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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
erodeAll()
Destructively erodes the given array.abstract void
erodeAt
(int x, int y) void
erodeWithinPolygon
(Polygon2D poly) void
setElevation
(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)
-