rotating leaf particles, wind perturbation

This commit is contained in:
octarine-noise
2014-08-15 20:24:54 +02:00
parent dcbb636902
commit b407e51d19
6 changed files with 70 additions and 26 deletions

View File

@@ -27,6 +27,10 @@ public class Double3 {
return new Double3(x + other.x, y + other.y, z + other.z);
}
public Double3 sub(Double3 other) {
return new Double3(x - other.x, y - other.y, z - other.z);
}
public Double3 add(double x, double y, double z) {
return new Double3(this.x + x, this.y + y, this.z + z);
}