Interface LineIntersectable

All Known Implementing Classes:
Box, Sphere, Triangle

public interface LineIntersectable
Describes objects than can intersect with a line segment.
Author:
Naraenda
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns a list of intersection between a line segment and an object.
    default Boolean
    Checks if a line segment intersects an object.
  • Method Details

    • intersect

      Collection<Vec3> intersect(Line l)
      Returns a list of intersection between a line segment and an object.
      Parameters:
      l - line segment
      Returns:
      list of intersections.
    • intersects

      default Boolean intersects(Line l)
      Checks if a line segment intersects an object.
      Parameters:
      l - line segment
      Returns: