PointSigned
class PointSigned implements PointInterface
A point class that allows negative values of coordinates.
Methods
__construct(int $x, int $y)
Constructs a point of coordinates.
int
getX()
Gets points x coordinate.
int
getY()
Gets points y coordinate.
bool
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 37
__construct(int $x, int $y)
Constructs a point of coordinates.
at line 48
int
getX()
Gets points x coordinate.
at line 58
int
getY()
Gets points y coordinate.
at line 68
bool
in(BoxInterface $box)
Checks if current coordinate is inside a given box.
at line 78
PointInterface
move(int $amount)
Returns another point, moved by a given amount from current coordinates.
at line 88
string
__toString()
Gets a string representation for the current point.