interface GridMeasurePathResult {
    waypoints: GridMeasurePathResultWaypoint[];
    segments: GridMeasurePathResultSegment[];
    distance: number;
    spaces: number;
    cost: number;
}

Properties

The measurements at each waypoint.

The measurements at each segment.

distance: number

The total distance travelled along the path through all waypoints.

spaces: number

The total number of spaces moved along a direct path through all waypoints. Moving from a grid space to any of its neighbors counts as 1 step. Always 0 in gridless grids.

cost: number

The total cost of the direct path (BaseGrid#getDirectPath) through all waypoints.