Class: GirihDecagon

GirihDecagon(position, edgeLength)

new GirihDecagon(position, edgeLength)

Parameters:
Name Type Description
position Vertex
edgeLength number
Source:

Extends

Members

findAdjacentTilePosition

Find the adjacent tile (given by the template tile) Note that the tile itself will be modified (rotated and moved to the correct position).
Inherited From:
Source:

getInnerTilePolygonAt

Get the inner tile polygon at the given index. This function applies MOD to the index.
Inherited From:
Source:

getOuterTilePolygonAt

Get the outer tile polygon at the given index. This function applies MOD to the index.
Inherited From:
Source:

locateEdgeAtPoint

This function locates the closest tile edge (polygon edge) to the passed point. Currently the edge distance to a point is measured by the euclidian distance from the edge's middle point. Idea: move this function to Polygon?
Inherited From:
Source:

move

Move this tile around (together will all inner polygons). As this function overrides Polygon.move(...), the returned instance (this) must be of type `Polygon`.
Inherited From:
Source:

rotate

Rotate this tile Note: this function behaves a bitdifferent than the genuine Polygon.rotate function! Polygon has the default center of rotation at (0,0). The GirihTile rotates around its center (position) by default.
Inherited From:
Source:

transformTilePositionToAdjacencies

Apply adjacent tile position to `neighbourTile`.
Inherited From:
Source:

transformTileToAdjacencies

Find all possible adjacent tile positions (and rotations) for `neighbourTile`.
Inherited From:
Source: