# HG changeset patch # User postspectacular # Date 1327488465 0 # Node ID 032471906b662e0b1708c69035470dd51d8b66ca # Parent 91ff272b669d94722ae34f5bc6241a24186a59b9 updating ErosionFunction and adding getters/setter for TalusAngleErosion diff -r 91ff272b669d94722ae34f5bc6241a24186a59b9 -r 032471906b662e0b1708c69035470dd51d8b66ca src.sim/toxi/sim/erosion/ErosionFunction.java --- a/src.sim/toxi/sim/erosion/ErosionFunction.java Wed Jan 25 10:45:49 2012 +0000 +++ b/src.sim/toxi/sim/erosion/ErosionFunction.java Wed Jan 25 10:47:45 2012 +0000 @@ -80,10 +80,9 @@ this.elevation = elevation; this.width = width; this.height = height; - final int w1 = width - 1; - final int h1 = height - 1; off = new int[] { - -width - 1, -width, -width + 1, -1, 0, 1, w1, width, width + 1 + -width - 1, -width, -width + 1, -1, 0, 1, width - 1, width, + width + 1 }; } } diff -r 91ff272b669d94722ae34f5bc6241a24186a59b9 -r 032471906b662e0b1708c69035470dd51d8b66ca src.sim/toxi/sim/erosion/TalusAngleErosion.java --- a/src.sim/toxi/sim/erosion/TalusAngleErosion.java Wed Jan 25 10:45:49 2012 +0000 +++ b/src.sim/toxi/sim/erosion/TalusAngleErosion.java Wed Jan 25 10:47:45 2012 +0000 @@ -99,6 +99,36 @@ } } + /** + * @return the amount + */ + public float getAmount() { + return amount; + } + + /** + * @return the theta + */ + public float getTheta() { + return theta; + } + + /** + * @param amount + * the amount to set + */ + public void setAmount(float amount) { + this.amount = amount; + } + + /** + * @param theta + * the theta to set + */ + public void setTheta(float theta) { + this.theta = theta; + } + public String toString() { return getClass().getName() + ": theta=" + theta + " amount=" + amount; }