The base grid constructor.
The grid configuration
ReadonlyalphaThe opacity of the grid.
ReadonlycolorThe color of the grid.
ReadonlydistanceThe distance of a grid space in units.
ReadonlysizeThe size of a grid space in pixels.
ReadonlysizeXThe width of a grid space in pixels.
ReadonlysizeYThe height of a grid space in pixels.
ReadonlystyleThe style of the grid.
ReadonlythicknessThe thickness of the grid.
ReadonlytypeReadonlyunitsThe distance units used in this grid.
Is this a gridless grid?
Is this a hexagonal grid?
Is this a square grid?
Measure a shortest, direct path through the given waypoints.
The waypoints the path must pass through
Optionaloptions: { cost?: GridMeasurePathCostFunction2D<SegmentData> }Additional measurement options
Optionalcost?: 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
Optionaloptions: { cost?: GridMeasurePathCostFunction3D<SegmentData> }Additional measurement options
Optionalcost?: 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 gridless grid class.