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