objects
Class Point
java.lang.Object
|
+--objects.Point
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- Location
- public class Point
- extends Object
- implements Serializable
An immutable, 2D point representation.
- Version:
- $Revision: 1.8 $
- Author:
- Dave Jurgens
- See Also:
- Serialized Form
|
Constructor Summary |
Point(double x,
double y)
|
|
Method Summary |
double |
getX()
Returns the x value on the unit square. |
double |
getY()
Returns the y value on the unit square. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
x
protected double x
y
protected double y
Point
public Point(double x,
double y)
getX
public double getX()
- Returns the x value on the unit square.
getY
public double getY()
- Returns the y value on the unit square.
To submit a bug or feature email the author of that class. Funding for this research was provided by Boeing and DARPA.