Interface HighResolutionTerrain.IntersectionCallback

  • Enclosing class:
    HighResolutionTerrain

    public static interface HighResolutionTerrain.IntersectionCallback
    Defines an interface for returning computed intersections.
    • Method Detail

      • intersection

        void intersection​(Position pA,
                          Position pB,
                          Intersection[] intersections)
        Called with the computed intersections for a line. This method is called only for lines along which intersections occur.
        Parameters:
        pA - The line's start point.
        pB - The line's end point.
        intersections - An array of intersections.
      • exception

        void exception​(java.lang.Exception exception)
        Called if an exception occurs during intersection testing.
        Parameters:
        exception - the exception thrown.