You are here

public function PositionedRectangle::getBoundingHeight in Image Effects 8

Same name and namespace in other branches
  1. 8.3 src/Component/PositionedRectangle.php \Drupal\image_effects\Component\PositionedRectangle::getBoundingHeight()
  2. 8.2 src/Component/PositionedRectangle.php \Drupal\image_effects\Component\PositionedRectangle::getBoundingHeight()

Gets the bounding height of the rectangle.

Return value

int The bounding height of the rotated rectangle.

1 call to PositionedRectangle::getBoundingHeight()
PositionedRectangle::setFromCorners in src/Component/PositionedRectangle.php
Sets a rectangle from the coordinates of its corners.

File

src/Component/PositionedRectangle.php, line 294

Class

PositionedRectangle
Rectangle algebra class.

Namespace

Drupal\image_effects\Component

Code

public function getBoundingHeight() {
  return $this->points['o_c'][1] - $this->points['o_a'][1] + 1;
}