API Docs for: 1.0.2
Show:

GIScene.Grid.Index Class

Defined in: GIScene\Grid.js:34
Module: GIScene

An object representing a tile in the grid. The x property indexes the tiles from west to east. The y property indexes the tiles from south to north.

Constructor

GIScene.Grid.Index

(
  • x
  • y
  • tileSize
)

Defined in GIScene\Grid.js:34

Parameters:

  • x Integer
  • y Integer
  • tileSize Number

Item Index

Methods

getTilesFromLineIntersection

(
  • startCoord2
  • endCoord2
  • tileSize
)
Array of GIScene.Grid.Index

Defined in GIScene\Grid.js:381

Returns an array of Grid.Index objects which are intersected by a line

Parameters:

  • startCoord2 GIScene.Coordinate2
  • endCoord2 GIScene.Coordinate2
  • tileSize Number

Returns:

Array of GIScene.Grid.Index:

tiles