public interface LOSSolver
Modifier and Type | Method and Description |
---|---|
java.util.Queue<java.awt.Point> |
getLastPath()
Returns the path of the last LOS calculation, with the starting point as
the head of the queue.
|
boolean |
isReachable(float[][] resistanceMap,
int startx,
int starty,
int targetx,
int targety)
Returns true if a line can be drawn from the start point to the target
point without intervening obstructions.
|
boolean |
isReachable(float[][] resistanceMap,
int startx,
int starty,
int targetx,
int targety,
float force,
float decay,
RadiusStrategy radiusStrategy)
Returns true if a line can be drawn from the start point to the target
point without intervening obstructions.
|
boolean isReachable(float[][] resistanceMap, int startx, int starty, int targetx, int targety, float force, float decay, RadiusStrategy radiusStrategy)
resistanceMap
- marks the level of resistance the the line per cellstartx
- starty
- targetx
- targety
- force
- the amount of impetus to start withdecay
- the amount the force is reduced per unit distanceradiusStrategy
- the strategy to use in computing unit distanceboolean isReachable(float[][] resistanceMap, int startx, int starty, int targetx, int targety)
resistanceMap
- startx
- starty
- targetx
- targety
- java.util.Queue<java.awt.Point> getLastPath()