public class Point
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
int |
x
X-coordinate of the point.
|
int |
y
Y-coordinate of the point.
|
| Constructor and Description |
|---|
Point()
Initializes an empty instance of the Point class.
|
Point(int x,
int y)
Initializes a new instance of the Point class from its members.
|
Point(Point point)
Initializes a new instance of the Point class by copying another Point.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
public Point()
public Point(int x,
int y)
x - X-coordinate of the point.y - Y-coordinate of the point.public Point(Point point)
point - The Point to copy.Copyright © 2020-2030, id3 Technologies. All rights reserved. eu.id3.document