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.Boundaryboundary()Get theBoundaryof this intersectible.java.util.List<Intersection>intersect(LineSegment line)Calculates all the intersections between a givenLineSegmentand this object.
-
Method Details
-
intersect
Calculates all the intersections between a givenLineSegmentand this object.- Parameters:
line- TheLineSegmentto check for intersections.- Returns:
- A list of all the intersections with the given
LineSegment.
-
boundary
geometries.Boundary boundary()Get theBoundaryof this intersectible.- Returns:
- The bounding box of this intersectible.
-