class Point implements PointInterface
Methods
__construct(integer $x, integer $y)
Constructs a point of coordinates |
||
integer |
getX()
Gets points x coordinate |
|
integer |
getY()
Gets points y coordinate |
|
Boolean |
in(BoxInterface $box)
Checks if current coordinate is inside a given bo |
|
ImageInterface |
move(integer $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 36
public
__construct(integer $x, integer $y)
Constructs a point of coordinates
at line 51
public integer
getX()
Gets points x coordinate
at line 59
public integer
getY()
Gets points y coordinate
at line 67
public Boolean
in(BoxInterface $box)
Checks if current coordinate is inside a given bo
at line 75
public ImageInterface
move(integer $amount)
Returns another point, moved by a given amount from current coordinates
at line 83
public string
__toString()
Gets a string representation for the current point