The square grid constructor.
The grid configuration
The rule for diagonal measurement (see CONST.GRID_DIAGONALS).
The size of a grid space in pixels.
The width of a grid space in pixels.
The height of a grid space in pixels.
The distance of a grid space in units.
The distance units used in this grid.
The style of the grid.
The thickness of the grid.
The color of the grid.
The opacity of the grid.
Is this a gridless grid?
Is this a square grid?
Is this a hexagonal grid?
Measure a shortest, direct path through the given waypoints.
The waypoints the path must pass through
Optional
options: { Additional measurement options
The function that returns the cost for a given move between grid spaces (default is the distance travelled along the direct path)
The measurements a shortest, direct path through the given waypoints.
Get the cone polygon given the radius in grid units and the angle in degrees for this grid. The points of the polygon are returned ordered in positive orientation. In gridless grids an approximation of the true cone with a deviation of less than 0.25 pixels is returned.
The origin point of the cone.
The radius in grid units.
The direction in degrees.
The angle in degrees.
The points of the cone polygon.
Private
#snapPrivate
#snapPrivate
#snapPrivate
#snapPrivate
#snapPrivate
#snapPrivate
#snapPrivate
#snapPrivate
#snapPrivate
#calculateCalculate the cost of the direct path segment.
The coordinates the segment starts from
The coordinates the segment goes to
The cost function
The number of diagonal moves that have been performed already
The cost of the path segment
Private
#getPrivate
#getPrivate
#getPrivate
#getGet the circle polygon given the radius in grid units (ALTERNATING_1/2).
The center point of the circle.
The radius in grid units (positive).
2/1/2 instead of 1/2/1?
The points of the circle polygon.
Private
#get
The square grid class.