Class LocationLineOfSight


public final class LocationLineOfSight extends LineOfSight
Location Line of Sight analysis calculates segments of visibility between two Point objects. The line of sight is calculated from the observer location pointing towards the target location.
Since:
10.2.0
  • Constructor Details Link icon

    • LocationLineOfSight Link icon

      public LocationLineOfSight(Point observerLocation, Point targetLocation)
      Creates an instance of LocationLineOfSight based on an observer and a target.
      Parameters:
      observerLocation - the observer location
      targetLocation - the target location
      Throws:
      IllegalArgumentException - if observerLocation is null
      IllegalArgumentException - if targetLocation is null
      Since:
      10.2.0
  • Method Details Link icon

    • getObserverLocation Link icon

      public Point getObserverLocation()
      Gets the observer location.
      Returns:
      the observer location
      Since:
      10.2.0
    • setObserverLocation Link icon

      public void setObserverLocation(Point observerLocation)
      Sets the observer location.
      Parameters:
      observerLocation - the observer location
      Throws:
      IllegalArgumentException - if observerLocation is null
      Since:
      10.2.0
    • getTargetLocation Link icon

      public Point getTargetLocation()
      Gets the target location.
      Returns:
      the target location
      Since:
      10.2.0
    • setTargetLocation Link icon

      public void setTargetLocation(Point targetLocation)
      Sets the target location.
      Parameters:
      targetLocation - the target location
      Throws:
      IllegalArgumentException - if targetLocation is null
      Since:
      10.2.0