Package edu.cmu.tetrad.util
Class PointXy
java.lang.Object
edu.cmu.tetrad.util.PointXy
- All Implemented Interfaces:
TetradSerializable
,Serializable
Stores a (x, y) point without having to use awt classes. Immutable.
- Version:
- $Id: $Id
- Author:
- josephramsey
- See Also:
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
PointXy
public PointXy(int x, int y) Constructs a new point with the given coordinates.- Parameters:
x
- The x coordinate for the point.y
- The y coordinate for the point.
-
PointXy
-
-
Method Details
-
serializableInstance
Generates a simple exemplar of this class to test serialization.- Returns:
- the examplar.
-
getX
public int getX()Getter for the field
x
.- Returns:
- Ibid.
-
getY
public int getY()Getter for the field
y
.- Returns:
- Ibid.
-
equals
-
toString
-