HumHub Documentation (unofficial)

Center
in package
implements PointInterface

FinalYes

Center point of a box.

Table of Contents

Interfaces

PointInterface
The point interface.

Properties

$box  : BoxInterface

Methods

__construct()  : mixed
Constructs coordinate with size instance, it needs to be relative to.
__toString()  : string
Gets a string representation for the current point.
getX()  : int
Gets points x coordinate.
getY()  : int
Gets points y coordinate.
in()  : bool
Checks if current coordinate is inside a given box.
move()  : PointInterface
Returns another point, moved by a given amount from current coordinates.

Properties

Methods

__construct()

Constructs coordinate with size instance, it needs to be relative to.

public __construct(BoxInterface $box) : mixed
Parameters
$box : BoxInterface

        
On this page

Search results