Rectangle Class Reference
List of all members.Public Member Functions | |
| Rectangle ($x1, $y1, $x2, $y2) | |
| getPaddedRectangle ($padding) | |
Public Attributes | |
| $x1 | |
| $y1 | |
| $x2 | |
| $y2 | |
Detailed Description
A rectangle identified by the top-left and the bottom-right corners.
Member Function Documentation
| Rectangle::Rectangle | ( | $ | x1, | |
| $ | y1, | |||
| $ | x2, | |||
| $ | y2 | |||
| ) |
Creates a new rectangle
- Parameters:
-
resource GD image resource
| Rectangle::getPaddedRectangle | ( | $ | padding | ) |
Apply a padding and returns the resulting rectangle.
- Returns:
- Resulting rectangle
Member Data Documentation
| Rectangle::$x1 |
Top left X
| Rectangle::$y1 |
Top left Y
| Rectangle::$x2 |
Bottom right X
| Rectangle::$y2 |
Bottom right Y
The documentation for this class was generated from the following file:
- Rectangle.php