Cheetah
Public Member Functions | Public Attributes | List of all members
Intervention\Image\Point Class Reference

Public Member Functions

 __construct ($x=null, $y=null)
 
 setX ($x)
 
 setY ($y)
 
 setPosition ($x, $y)
 

Public Attributes

 $x
 
 $y
 

Detailed Description

Definition at line 5 of file Point.php.

Constructor & Destructor Documentation

◆ __construct()

Intervention\Image\Point::__construct (   $x = null,
  $y = null 
)

Creates a new instance

Parameters
integer$x
integer$y

Definition at line 27 of file Point.php.

Member Function Documentation

◆ setPosition()

Intervention\Image\Point::setPosition (   $x,
  $y 
)

Sets both X and Y coordinate

Parameters
integer$x
integer$y

Definition at line 59 of file Point.php.

◆ setX()

Intervention\Image\Point::setX (   $x)

Sets X coordinate

Parameters
integer$x

Definition at line 38 of file Point.php.

◆ setY()

Intervention\Image\Point::setY (   $y)

Sets Y coordinate

Parameters
integer$y

Definition at line 48 of file Point.php.

Member Data Documentation

◆ $x

Intervention\Image\Point::$x

Definition at line 12 of file Point.php.

◆ $y

Intervention\Image\Point::$y

Definition at line 19 of file Point.php.


The documentation for this class was generated from the following file: