# Class cocos.tiles.HexCell

    Cell --+
           |
          HexCell

A flat-top, regular hexagon cell from a HexMap.

Cell attributes:
  i, j -- index of this cell in the map width, height -- dimensions properties -- arbitrary properties cell -- cell from the MapLayer's cells
Read-only attributes:
  x, y -- bottom-left pixel top -- y pixel extent bottom -- y pixel extent left -- (x, y) of left corner pixel right -- (x, y) of right corner pixel center -- (x, y) origin -- (x, y) of bottom-left corner of bounding rect topleft -- (x, y) of top-left corner pixel topright -- (x, y) of top-right corner pixel bottomleft -- (x, y) of bottom-left corner pixel bottomright -- (x, y) of bottom-right corner pixel midtop -- (x, y) of middle of top side pixel midbottom -- (x, y) of middle of bottom side pixel midtopleft -- (x, y) of middle of left side pixel midtopright -- (x, y) of middle of right side pixel midbottomleft -- (x, y) of middle of left side pixel midbottomright -- (x, y) of middle of right side pixel

Note that all pixel attributes are not adjusted for screen, view or layer transformations.

## Methods

| __init__(self, i, j, height, properties, tile)
| get_origin(self)
| get_top(self)
| get_bottom(self)
| get_center(self)
| get_midtop(self)
| get_midbottom(self)
| get_left(self)
| get_right(self)
| get_topleft(self)
| get_topright(self)
| get_bottomleft(self)
| get_bottomright(self)
| get_midtopleft(self)
| get_midtopright(self)
| get_midbottomleft(self)
| get_midbottomright(self)
| __contains__(self, key) (Inherited from cocos.tiles.Cell)
| __getitem__(self, key) (Inherited from cocos.tiles.Cell)
| __repr__(self) (Inherited from cocos.tiles.Cell)
| __setitem__(self, key, value) (Inherited from cocos.tiles.Cell)
| get(self, key, default=None) (Inherited from cocos.tiles.Cell)

## Properties

| origin
| top
| bottom
| center
| midtop
| midbottom
| left
| right
| topleft
| topright
| bottomleft
| bottomright
| midtopleft
| midtopright
| midbottomleft
| midbottomright
| position (Inherited from cocos.tiles.Cell)

## Method Details

### __init__

(Constructor) __init__(self, i, j, height, properties, tile)

Overrides:
  Cell.__init__

## Property Details

### origin

### top

### bottom

### center

### midtop

### midbottom

### left

### right

### topleft

### topright

### bottomleft

### bottomright

### midtopleft

### midtopright

### midbottomleft

### midbottomright