Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface PathResult

The result of a shortest path finding computation.

Hierarchy

  • PathResult

Index

Properties

Properties

positions?: Position[]

All the positions found, from start to end.

undefined if in a Failed, Block or Unreachable status.

status: "Success" | "Failed" | "Block" | "Unreachable"

The status of the computation.

  • Success: a shortest path was found.
  • Unreachable : all paths between start and end Position are blocked.
  • Block : the start or end Position is a blocking one.
  • Failed : the target Position was outside the boundaries of the grid.

Generated using TypeDoc