sidnet.stack.users.marco_project.image_charges.routing
Class Coordinate

java.lang.Object
  extended by sidnet.stack.users.marco_project.image_charges.routing.Coordinate
All Implemented Interfaces:
JistAPI.DoNotRewrite, Ordered

public class Coordinate
extends java.lang.Object
implements Ordered, JistAPI.DoNotRewrite


Field Summary
protected  Location2D pos
           
 
Constructor Summary
Coordinate(double x, double y)
           
 
Method Summary
 int compareTo(java.lang.Object other)
           
 double distanceTo(Coordinate toCoord)
           
 Location2D getAsLocation2D()
           
 double getX()
           
 double getY()
           
 double norm()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

pos

protected Location2D pos
Constructor Detail

Coordinate

public Coordinate(double x,
                  double y)
Method Detail

getX

public double getX()

getY

public double getY()

compareTo

public int compareTo(java.lang.Object other)
Specified by:
compareTo in interface Ordered

norm

public double norm()
Specified by:
norm in interface Ordered

distanceTo

public double distanceTo(Coordinate toCoord)

getAsLocation2D

public Location2D getAsLocation2D()