trait AbsolutePositionTrait

Trait AbsolutePositionTrait

Methods

x(int|float|string $x)

Sets the x dimension of the point.

y(int|float|string $y)

Sets the y dimension of the point.

point(int|float|string $x = null, int|float|string $y = null)

Sets the x and y dimensions of the point.

position(int|float|string $x = null, int|float|string $y = null)

Sets the absolute position.

Details

$this x(int|float|string $x)

Sets the x dimension of the point.

Parameters

Name Type Description
$x int|float|string The value of the x dimension.

Return Value

$this

$this y(int|float|string $y)

Sets the y dimension of the point.

Parameters

Name Type Description
$y int|float|string The value of the y dimension.

Return Value

$this

PointTrait point(int|float|string $x = null, int|float|string $y = null)

Sets the x and y dimensions of the point.

Parameters

Name Type Description
$x int|float|string The value of the x dimension.
$y int|float|string The value of the y dimension.

Return Value

PointTrait

$this position(int|float|string $x = null, int|float|string $y = null)

Sets the absolute position.

Parameters

Name Type Description
$x int|float|string The x dimension.
$y int|float|string The y dimension.

Return Value

$this