Interface PathFinder


  • public interface PathFinder
    Interface for a path finding algorithm
    • Method Detail

      • findPath

        void findPath​(Path path,
                      CoordinateIfc from,
                      CoordinateIfc to)
        Fills the supplied path parameter with the points on the path, not including the starting location but including the goal location. The coordinates should not be modified since they may be used inside other objects (as an efficiency). The supplied path will be empty if no path is found
        Parameters:
        path - A list to hold the points on the path
        from -
        to -
      • findPath

        void findPath​(Path path,
                      SpatialElementIfc from,
                      SpatialElementIfc to)
        Fills the supplied path parameter with the points on the path, not including the starting location but including the goal location. The supplied points should not be modified since they may be used inside other objects (as an efficiency). The supplied path will be empty if no path is found
        Parameters:
        path - A list to hold the points on the path
        from -
        to -