Point.Point

Point.Point

Class Overview | Class Members | This Package | All Packages

Syntax 1
public Point()
Parameters
x
the x coordinate.
y
the y coordinate.
Description
Constructs and initializes a point at the origin (0, 0) of the coordinate space.



Syntax 2
public Point( Point p )
Parameters
p
a point.
Description
Constructs and initializes a point with the same location as the specified Point object.



Syntax 3
public Point( int x, int y )
Parameters
x
the x coordinate.
y
the y coordinate.
Description
Constructs and initializes a point at the specified (xy) location in the coordinate space.