public class XYCoordinate extends Object implements Comparable, Serializable
Constructor and Description |
---|
XYCoordinate()
Creates a new coordinate for the point (0.0, 0.0).
|
XYCoordinate(double x,
double y)
Creates a new coordinate for the point (x, y).
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Object obj)
Compares this instance against an arbitrary object.
|
boolean |
equals(Object obj)
Tests this coordinate for equality with an arbitrary object.
|
double |
getX()
Returns the x-coordinate.
|
double |
getY()
Returns the y-coordinate.
|
int |
hashCode()
Returns a hash code for this instance.
|
String |
toString()
Returns a string representation of this instance, primarily for
debugging purposes.
|
public XYCoordinate()
public XYCoordinate(double x, double y)
x
- the x-coordinate.y
- the y-coordinate.public double getX()
public double getY()
public boolean equals(Object obj)
public int hashCode()
public String toString()
public int compareTo(Object obj)
compareTo
in interface Comparable
obj
- the object (null
not permitted).Jas4pp 1.5 © Java Analysis Studio for Particle Physics