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 Detail

      • 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:
        java.lang.IllegalArgumentException - if observerLocation is null
        java.lang.IllegalArgumentException - if targetLocation is null
        Since:
        10.2.0
    • Method Detail

      • 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:
        java.lang.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:
        java.lang.IllegalArgumentException - if targetLocation is null
        Since:
        10.2.0