Package toxi.geom

Interface Reflector3D

All Superinterfaces:
Intersector3D
All Known Implementing Classes:
SphereIntersectorReflector

public interface Reflector3D extends Intersector3D
Generic interface for ray reflection with 3D geometry
  • Method Details

    • getReflectedRayPointAtDistance

      ReadonlyVec3D getReflectedRayPointAtDistance(float dist)
      Returns the point on the reflected ray at given distance from the intersection point
      Parameters:
      dist - distance from isect position
      Returns:
      point on reflected ray
    • getReflectionAngle

      float getReflectionAngle()
      Returns:
      angle between incident ray and surface normal
    • reflectRay

      Ray3D reflectRay(Ray3D ray)
      Reflects given ray on the entity's surface
      Parameters:
      ray - incident ray
      Returns:
      reflected ray starting from intersection point