-
-
Constructor Summary
Constructors
Constructor and Description |
Point(double x,
double y)
Initializes a new instance of the Point class.
|
-
Method Summary
Methods
Modifier and Type |
Method and Description |
double |
getX()
Gets the x-coordinate.
|
double |
getY()
Gets the y-coordinate.
|
String |
toString() |
-
-
Method Detail
-
getX
public double getX()
Gets the x-coordinate.
- Returns:
- A double value that represents the x-coordinate.
-
getY
public double getY()
Gets the y-coordinate.
- Returns:
- A double value that represents the y-coordinate.