Documentation

Point
in package

Representation of the coordinates of a point.

Table of Contents

Properties

$x  : float
$y  : float

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
float

getY()

Retrieves the y coordinate.

public getY() : float
Return values
float

        
On this page

Search results