trait PointTrait

Trait PointTrait

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.

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