Search in sources :

Example 11 with MutableVector3

use of com.fastasyncworldedit.core.math.MutableVector3 in project FastAsyncWorldEdit by IntellectualSites.

the class NoiseFilter method setDensity.

/**
 * Set the probability of passing as a number between 0 and 1 (inclusive).
 */
public void setDensity(double density) {
    checkArgument(density >= 0, "density must be >= 0");
    checkArgument(density <= 1, "density must be <= 1");
    this.density = density;
    // FAWE start - mutable
    this.mutable = new MutableVector3();
// FAWE end
}
Also used : MutableVector3(com.fastasyncworldedit.core.math.MutableVector3)

Aggregations

MutableVector3 (com.fastasyncworldedit.core.math.MutableVector3)11 MutableBlockVector3 (com.fastasyncworldedit.core.math.MutableBlockVector3)5 BlockVector3 (com.sk89q.worldedit.math.BlockVector3)2 Vector3 (com.sk89q.worldedit.math.Vector3)1 AffineTransform (com.sk89q.worldedit.math.transform.AffineTransform)1