You are here

public function PositionedRectangle::getPoint in Image Effects 8.3

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

Gets the coordinates of a point.

Parameters

string $id: The point ID.

Return value

array An array of x, y coordinates.

1 call to PositionedRectangle::getPoint()
PositionedRectangle::getSubGridDimensions in src/Component/PositionedRectangle.php
Get the width and height dimensions of the portion of a grid.

File

src/Component/PositionedRectangle.php, line 233

Class

PositionedRectangle
Rectangle algebra class.

Namespace

Drupal\image_effects\Component

Code

public function getPoint($id) {
  return $this->points[$id];
}