|
MATES 3.0-rc2 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mates.util.Position
Class for storing a position.
Constructor Summary | |
Position()
Creates a new Position object. |
Method Summary | |
abstract java.lang.Object |
clone()
|
abstract double |
distanceTo(Position position)
Returns the distance from this position to position . |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Position()
Method Detail |
public abstract double distanceTo(Position position)
position
. Note that this function need
not be symmetric; a.distanceTo(b)
does not
necessarily return the same value as
b.distanceTo(a)
. Most implementations of this
class will simply use Euclidean distance as a metric, though,
which will mean that this function will be symmetric. This
function is used by many link models.
public abstract java.lang.Object clone()
|
MATES 3.0-rc2 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |