public function PositionedRectangle::getBoundingWidth in Image Effects 8.2
Same name and namespace in other branches
- 8.3 src/Component/PositionedRectangle.php \Drupal\image_effects\Component\PositionedRectangle::getBoundingWidth()
- 8 src/Component/PositionedRectangle.php \Drupal\image_effects\Component\PositionedRectangle::getBoundingWidth()
Gets the bounding width of the rectangle.
Return value
int The bounding width of the rotated rectangle.
1 call to PositionedRectangle::getBoundingWidth()
- PositionedRectangle::setFromCorners in src/
Component/ PositionedRectangle.php - Sets a rectangle from the coordinates of its corners.
File
- src/
Component/ PositionedRectangle.php, line 284
Class
- PositionedRectangle
- Rectangle algebra class.
Namespace
Drupal\image_effects\ComponentCode
public function getBoundingWidth() {
return $this->points['o_c'][0] - $this->points['o_a'][0] + 1;
}