Package toxi.geom

Interface Intersector3D

All Known Subinterfaces:
Reflector3D
All Known Implementing Classes:
BoxIntersector, MeshIntersector, PlaneIntersector, Ray3DIntersector, SphereIntersectorReflector, TriangleIntersector, TriangleMesh, WETriangleMesh

public interface Intersector3D
Generic interface for ray intersection with 3D geometry
  • Method Details

    • getIntersectionData

      IsectData3D getIntersectionData()
      Returns:
      intersection data parcel
    • intersectsRay

      boolean intersectsRay(Ray3D ray)
      Checks if entity intersects with the given ray. Further intersection details can then be queried via the IsectData3D instance returned by getIntersectionData().
      Parameters:
      ray - ray to check
      Returns:
      true, if ray hits the entity