You are here

public function PositionedRectangle::getRotationOffset in Image Effects 8.2

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

Gets the rotation offset of the rectangle.

Return value

array The x/y offset required to reposition the rectangle fully in the first quadrant after it has been rotated.

File

src/Component/PositionedRectangle.php, line 274

Class

PositionedRectangle
Rectangle algebra class.

Namespace

Drupal\image_effects\Component

Code

public function getRotationOffset() {
  return $this->rotationOffset;
}