Interface GISTreeNode<P extends GISPrimitive,​N extends GISTreeNode<P,​N>>

    • Method Detail

      • getRegion

        @Pure
        int getRegion()
        Replies the region covered by this node.
        Returns:
        the region covered by this node
      • intersects

        @Pure
        boolean intersects​(Rectangle2afp<?,​?,​?,​?,​?,​?> rect)
        Replies if the specified rectangle intersects the bounds of the area covered by this node.
        Parameters:
        rect - the shape
        Returns:
        true if this node intersects the given rectangle, otherwise false
      • intersects

        @Pure
        boolean intersects​(GeoLocation location)
        Replies if the specified rectangle intersects the bounds of the area covered by this node.
        Parameters:
        location - the position
        Returns:
        true if this node intersects the given rectangle, otherwise false
      • contains

        @Pure
        boolean contains​(Point2D<?,​?> point)
        Replies if the specified points is inside the bounds of the area covered by this node.
        Parameters:
        point - the point.
        Returns:
        true if this node encloses the given point, otherwise false
      • distance

        @Pure
        double distance​(double x,
                        double y)
        Replies the distance between the specified point and the area covered by this node. If the point is inside the area, the distance is zero.

        This this node has no parent, then this function is assuming that the node encloses the entire system area. It means that the distance to the point is always zero in this case.

        Parameters:
        x - x coordinate.
        y - y coordinate.
        Returns:
        the distance between the given point and the bounds of this node.