public class Point extends Object
Constructor and Description |
---|
Point(double x,
double y)
Initializes a new instance of the
Point class. |
Modifier and Type | Method and Description |
---|---|
double |
getX()
Gets the x-coordinate.
|
double |
getY()
Gets the y-coordinate.
|
String |
toString() |
public Point(double x, double y)
Point
class.x
- The x-coordinate.y
- The y-coordinate.