Point
in package
Represents a point on the screen.
This class encapsulates the coordinates of a point on the screen.
Table of Contents
Properties
Methods
- __construct() : mixed
- Constructs a new Point instance.
Properties
$x
The X coordinate position.
public
int
$x
$y
The Y coordinate position.
public
int
$y
Methods
__construct()
Constructs a new Point instance.
public
__construct([int $x = 0 ][, int $y = 0 ]) : mixed
Parameters
- $x : int = 0
-
The X coordinate position.
- $y : int = 0
-
The Y coordinate position.