Package geometries

Interface Intersectible

All Known Implementing Classes:
Cylinder, Geometry, GeometryList, Plane, Polygon, Sphere, Triangle, Tube

public interface Intersectible
This interface applies to objects which can be intersected with a ray to obtain the points of intersection.
  • Method Summary

    Modifier and Type Method Description
    geometries.Boundary boundary()
    Get the Boundary of this intersectible.
    java.util.List<Intersection> intersect​(LineSegment line)
    Calculates all the intersections between a given LineSegment and this object.
  • Method Details

    • intersect

      java.util.List<Intersection> intersect​(LineSegment line)
      Calculates all the intersections between a given LineSegment and this object.
      Parameters:
      line - The LineSegment to check for intersections.
      Returns:
      A list of all the intersections with the given LineSegment.
    • boundary

      geometries.Boundary boundary()
      Get the Boundary of this intersectible.
      Returns:
      The bounding box of this intersectible.