interface PointInterface

The point interface.

Methods

int
getX()

Gets points x coordinate.

int
getY()

Gets points y coordinate.

bool
in(BoxInterface $box)

Checks if current coordinate is inside a given box.

move(int $amount)

Returns another point, moved by a given amount from current coordinates.

string
__toString()

Gets a string representation for the current point.

Details

at line 24
int getX()

Gets points x coordinate.

Return Value

int

at line 31
int getY()

Gets points y coordinate.

Return Value

int

at line 40
bool in(BoxInterface $box)

Checks if current coordinate is inside a given box.

Parameters

BoxInterface $box

Return Value

bool

at line 49
PointInterface move(int $amount)

Returns another point, moved by a given amount from current coordinates.

Parameters

int $amount

Return Value

PointInterface

at line 56
string __toString()

Gets a string representation for the current point.

Return Value

string