All Packages Class Hierarchy This Package Previous Next Index
Class primitives.geomtry.ExtPoint
java.lang.Object
|
+----java.awt.Point
|
+----primitives.geomtry.ExtPoint
- public class ExtPoint
- extends Point
The ExtPoint adds the capability to cast a Point object to a Coordinate object
-
ExtPoint(int, int)
- Constructs and initializes an ExtPoint at the specified
(x, y) location in integer values in the coordinate space.
-
toCoordinate()
- Returns a Coordinate object with the same location as this point.
ExtPoint
public ExtPoint(int x,
int y)
- Constructs and initializes an ExtPoint at the specified
(x, y) location in integer values in the coordinate space.
- Parameters:
- x - the x coordinate.
- y - the y coordinate.
toCoordinate
public Coordinate toCoordinate()
- Returns a Coordinate object with the same location as this point.
- Returns:
- a Coordinate representation of this point.
All Packages Class Hierarchy This Package Previous Next Index