home
/
zktecojo
/
public_html
/
vendor
/
intervention
/
image
/
src
/
Intervention
/
Image
➕ New
📤 Upload
✎ Editing:
Point.php
← Back
<?php namespace Intervention\Image; class Point { /** * X coordinate * * @var integer */ public $x; /** * Y coordinate * * @var integer */ public $y; /** * Creates a new instance * * @param integer $x * @param integer $y */ public function __construct($x = null, $y = null) { $this->x = is_numeric($x) ? intval($x) : 0; $this->y = is_numeric($y) ? intval($y) : 0; } /** * Sets X coordinate * * @param integer $x */ public function setX($x) { $this->x = intval($x); } /** * Sets Y coordinate * * @param integer $y */ public function setY($y) { $this->y = intval($y); } /** * Sets both X and Y coordinate * * @param integer $x * @param integer $y */ public function setPosition($x, $y) { $this->setX($x); $this->setY($y); } }
💾 Save Changes
Cancel
📤 Upload File
×
Select File
Upload
Cancel
➕ Create New
×
Type
📄 File
📁 Folder
Name
Create
Cancel
✎ Rename Item
×
Current Name
New Name
Rename
Cancel
🔐 Change Permissions
×
Target File
Permission (e.g., 0755, 0644)
0755
0644
0777
Apply
Cancel