Interface Linecastable3D

    • Method Summary

      All Methods Instance Methods Abstract Methods Default Methods 
      Modifier and Type Method Description
      default java.util.List<LinecastPoint3D> linecast​(Line3D line)
      Intersect the given line against the boundaries in this instance, returning a list of all intersections in order of increasing distance along the line.
      java.util.List<LinecastPoint3D> linecast​(LineConvexSubset3D subset)
      Intersect the given line convex subset against the boundaries in this instance, returning a list of all intersections in order of increasing distance along the line.
      default LinecastPoint3D linecastFirst​(Line3D 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.
      LinecastPoint3D linecastFirst​(LineConvexSubset3D subset)
      Intersect the given line convex subset against the boundaries in this instance, returning the first intersection found when traveling in the direction of the line subset from its start point.
    • Method Detail

      • linecast

        default java.util.List<LinecastPoint3D> linecast​(Line3D line)
        Intersect the given line against the boundaries in this instance, returning a list of all intersections in order of increasing distance 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 distance along the line
      • linecast

        java.util.List<LinecastPoint3D> linecast​(LineConvexSubset3D subset)
        Intersect the given line convex subset against the boundaries in this instance, returning a list of all intersections in order of increasing distance 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 distance along the line
      • linecastFirst

        default LinecastPoint3D linecastFirst​(Line3D 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

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