The square grid constructor.
The grid configuration
Readonly
alphaThe opacity of the grid.
Readonly
colorThe color of the grid.
Readonly
diagonalsThe rule for diagonal measurement (see CONST.GRID_DIAGONALS).
Readonly
distanceThe distance of a grid space in units.
Readonly
sizeThe size of a grid space in pixels.
Readonly
sizeXThe width of a grid space in pixels.
Readonly
sizeYThe height of a grid space in pixels.
Readonly
styleThe style of the grid.
Readonly
thicknessThe thickness of the grid.
Readonly
typeReadonly
unitsThe distance units used in this grid.
Is this a gridless grid?
Is this a hexagonal grid?
Is this a square grid?
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
Measure a shortest, direct path through the given waypoints.
The waypoints the path must pass through
Optional
options: { cost?: GridMeasurePathCostFunction2D<SegmentData> }Additional measurement options
Optional
cost?: GridMeasurePathCostFunction2D<SegmentData>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
The waypoints the path must pass through
Optional
options: { cost?: GridMeasurePathCostFunction3D<SegmentData> }Additional measurement options
Optional
cost?: GridMeasurePathCostFunction3D<SegmentData>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
The square grid class.