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

    • LocationLineOfSight

      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

    • getObserverLocation

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

      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

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

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