Documentation

Point
in package

Table of Contents

Properties

$x  : int
X coordinate
$y  : int
Y coordinate

Methods

__construct()  : mixed
Creates a new instance
setPosition()  : mixed
Sets both X and Y coordinate
setX()  : mixed
Sets X coordinate
setY()  : mixed
Sets Y coordinate

Properties

$x

X coordinate

public int $x

$y

Y coordinate

public int $y

Methods

__construct()

Creates a new instance

public __construct([int $x = null ][, int $y = null ]) : mixed
Parameters
$x : int = null
$y : int = null

setPosition()

Sets both X and Y coordinate

public setPosition(int $x, int $y) : mixed
Parameters
$x : int
$y : int

setX()

Sets X coordinate

public setX(int $x) : mixed
Parameters
$x : int

setY()

Sets Y coordinate

public setY(int $y) : mixed
Parameters
$y : int
Loading…
On this page

Search results