You are here

protected property PositionedRectangle::$points in Image Effects 8.2

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

An array of point coordinates, keyed by an id.

Canonical points are: 'c_a' - bottom left corner of the rectangle 'c_b' - bottom right corner of the rectangle 'c_c' - top right corner of the rectangle 'c_d' - top left corner of the rectangle 'o_a' - bottom left corner of the bounding rectangle, once the rectangle is rotated 'o_c' - top right corner of the bounding rectangle, once the rectangle is rotated Additional points can be added through the setPoint() method. These will be subject to translation/rotation with the rest of the points when getTranslatedRectangle() method is executed.

Type: array

File

src/Component/PositionedRectangle.php, line 28

Class

PositionedRectangle
Rectangle algebra class.

Namespace

Drupal\image_effects\Component

Code

protected $points = [];