public class Point extends Object
Constructor and Description |
---|
Point(int x,
int y)
Constructs and initializes a point at the specified location in the coordinate space.
|
Modifier and Type | Method and Description |
---|---|
int |
getX()
Gets the X coordinate.
|
int |
getY()
Gets the Y coordinate.
|
void |
setX(int x)
Sets the X coordinate.
|
void |
setY(int y)
Sets the Y coordinate.
|
public Point(int x, int y)
x
- the X coordinate of the newly constructed Point
.y
- the Y coordinate of the newly constructed Point
.public void setX(int x)
x
- The new X coordinate to set.public int getX()
public void setY(int y)
y
- The new Y coordinate to set.public int getY()
Copyright © 2021 Visiativ Software. All rights reserved.