All Packages Class Hierarchy This Package Previous Next Index
Class benno.statoid.Position
java.lang.Object
|
+----benno.statoid.Position
- public final class Position
- extends Object
-
coord
- Stores the coordinates, and implicitly (in the length of the array) the
dimension of the Position.
-
Position(int)
- All coords are set to 0 by default
-
distanceFrom(Position)
-
-
moveNearerTo(Position, double)
- coeff must be between 0..1 inclusive
-
randomize()
-
coord
public double coord[]
- Stores the coordinates, and implicitly (in the length of the array) the
dimension of the Position. Co-ords must always be between 0 and 1
(ie within or on the surface of an appropriately dimensioned
hypercube.
Position
public Position(int dimension)
- All coords are set to 0 by default
randomize
public void randomize()
distanceFrom
public double distanceFrom(Position p)
moveNearerTo
public void moveNearerTo(Position p,
double coeff)
- coeff must be between 0..1 inclusive
All Packages Class Hierarchy This Package Previous Next Index