General code cleanup.

This commit is contained in:
sk89q
2014-03-31 20:29:05 -07:00
parent 8bec48dc9e
commit 761904e496
16 changed files with 97 additions and 43 deletions

View File

@ -28,7 +28,8 @@ import com.sk89q.worldedit.Vector2D;
public interface NoiseGenerator {
/**
* Get the noise for the given position.
* Get the noise value for the given position. The returned value may
* change on every future call for the same position.
*
* @param position the position
* @return a noise value between 0 (inclusive) and 1 (inclusive)
@ -36,7 +37,8 @@ public interface NoiseGenerator {
float noise(Vector2D position);
/**
* Get the noise for the given position.
* Get the noise value for the given position. The returned value may
* change on every future call for the same position.
*
* @param position the position
* @return a noise value between 0 (inclusive) and 1 (inclusive)

View File

@ -25,7 +25,8 @@ import com.sk89q.worldedit.Vector2D;
import java.util.Random;
/**
* Generates noise non-deterministically using {@link java.util.Random}.
* Generates noise using {@link java.util.Random}. Every time a noise
* generating function is called, a new value will be returned.
*/
public class RandomNoise implements NoiseGenerator {

View File

@ -24,8 +24,9 @@ import com.sk89q.worldedit.Vector;
/**
* An affine transform.
* </p>
* This class is from the <a href="http://geom-java.sourceforge.net/index.html>JavaGeom
* project</a>, which is licensed under LGPL v2.1.
* This class is from the
* <a href="http://geom-java.sourceforge.net/index.html>JavaGeom project</a>,
* which is licensed under LGPL v2.1.
*/
public class AffineTransform implements Transform {