public class Point extends Object
Modifier and Type | Field and Description |
---|---|
float |
x
The (x, y) coordinates of the point.
|
float |
y
The (x, y) coordinates of the point.
|
Constructor and Description |
---|
Point(float x,
float y)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
set(Point other)
Copy from another point into this one
|
String |
toString()
Print as a string in format "(x, y)"
|
int |
xInt() |
int |
yInt() |
public float x
public float y
public Point(float x, float y)
x
- The x coordinate of the pointy
- The y coordinate of the point