@Beta public class EliasLOS extends java.lang.Object implements LOSSolver
Constructor and Description |
---|
EliasLOS()
Creates this solver with the default side view parameter.
|
EliasLOS(float sideview)
Creates this solver with the provided value for how far along the
antialiased line the antialiased portion will be considered.
|
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.
|
float |
getSideview() |
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.
|
void |
setSideview(float sideview) |
public EliasLOS()
public EliasLOS(float sideview)
sideview
- public float getSideview()
public void setSideview(float sideview)
public boolean isReachable(float[][] resistanceMap, int startx, int starty, int targetx, int targety, float force, float decay, RadiusStrategy radiusStrategy)
LOSSolver
isReachable
in interface LOSSolver
resistanceMap
- marks the level of resistance the the line per cellforce
- the amount of impetus to start withdecay
- the amount the force is reduced per unit distanceradiusStrategy
- the strategy to use in computing unit distancepublic boolean isReachable(float[][] resistanceMap, int startx, int starty, int targetx, int targety)
LOSSolver
isReachable
in interface LOSSolver
public java.util.Queue<java.awt.Point> getLastPath()
LOSSolver
getLastPath
in interface LOSSolver