Interface Linecastable2D

    • Method Summary

      All Methods Instance Methods Abstract Methods Default Methods 
      Modifier and Type Method Description
      default java.util.List<LinecastPoint2D> linecast​(Line line)
      Intersect the given line against the boundaries in this instance, returning a list of all intersections in order of increasing position along the line.
      java.util.List<LinecastPoint2D> linecast​(LineConvexSubset subset)
      Intersect the given line subset against the boundaries in this instance, returning a list of all intersections in order of increasing position along the line.
      default LinecastPoint2D linecastFirst​(Line line)
      Intersect the given line against the boundaries in this instance, returning the first intersection found when traveling in the direction of the line from infinity.
      LinecastPoint2D linecastFirst​(LineConvexSubset subset)
      Intersect the given line subset against the boundaries in this instance, returning the first intersection found when traveling in the direction of the line subset from its start location.
    • Method Detail

      • linecast

        default java.util.List<LinecastPoint2D> linecast​(Line line)
        Intersect the given line against the boundaries in this instance, returning a list of all intersections in order of increasing position along the line. An empty list is returned if no intersections are discovered.
        Parameters:
        line - line the line to intersect
        Returns:
        a list of computed intersections in order of increasing position along the line
      • linecast

        java.util.List<LinecastPoint2D> linecast​(LineConvexSubset subset)
        Intersect the given line subset against the boundaries in this instance, returning a list of all intersections in order of increasing position along the line. An empty list is returned if no intersections are discovered.
        Parameters:
        subset - line subset to intersect
        Returns:
        a list of computed intersections in order of increasing position along the line
      • linecastFirst

        default LinecastPoint2D linecastFirst​(Line line)
        Intersect the given line against the boundaries in this instance, returning the first intersection found when traveling in the direction of the line from infinity.
        Parameters:
        line - the line to intersect
        Returns:
        the first intersection found or null if no intersection is found
      • linecastFirst

        LinecastPoint2D linecastFirst​(LineConvexSubset subset)
        Intersect the given line subset against the boundaries in this instance, returning the first intersection found when traveling in the direction of the line subset from its start location.
        Parameters:
        subset - line subset to intersect
        Returns:
        the first intersection found or null if no intersection is found