Point
in package
Representation of the coordinates of a point.
Table of Contents
Properties
Methods
- __construct() : mixed
- getX() : float
- Retrieves the x coordinate.
- getY() : float
- Retrieves the y coordinate.
Properties
$x
private
float
$x
X coordinate.
$y
private
float
$y
Y coordinate.
Methods
__construct()
public
__construct(float $x, float $y) : mixed
Parameters
- $x : float
-
Input x coordinate.
- $y : float
-
Input y coordinate.
getX()
Retrieves the x coordinate.
public
getX() : float
Return values
floatgetY()
Retrieves the y coordinate.
public
getY() : float