Cheetah
plugins
intervention-image
Intervention
Image
Point.php
Go to the documentation of this file.
1
<?
php
2
3
namespace
Intervention\Image
;
4
5
class
Point
6
{
12
public
$x
;
13
19
public
$y
;
20
27
public
function
__construct
(
$x
=
null
,
$y
=
null
)
28
{
29
$this->x = is_numeric(
$x
) ? intval(
$x
) : 0;
30
$this->y = is_numeric(
$y
) ? intval(
$y
) : 0;
31
}
32
38
public
function
setX
(
$x
)
39
{
40
$this->x = intval(
$x
);
41
}
42
48
public
function
setY
(
$y
)
49
{
50
$this->y = intval(
$y
);
51
}
52
59
public
function
setPosition
(
$x
,
$y
)
60
{
61
$this->
setX
(
$x
);
62
$this->
setY
(
$y
);
63
}
64
}
Intervention\Image\Point\__construct
__construct($x=null, $y=null)
Definition:
Point.php:27
Intervention\Image\Point
Definition:
Point.php:6
Intervention\Image\Point\setPosition
setPosition($x, $y)
Definition:
Point.php:59
php
Intervention\Image\Point\setX
setX($x)
Definition:
Point.php:38
Intervention\Image\Point\$x
$x
Definition:
Point.php:12
Intervention\Image\Point\$y
$y
Definition:
Point.php:19
Intervention\Image\Point\setY
setY($y)
Definition:
Point.php:48
Intervention\Image
Definition:
AbstractColor.php:3
Generated by
1.8.20