toxi.geom
Interface Reflector

All Superinterfaces:
Intersector
All Known Implementing Classes:
SphereIntersectorReflector

public interface Reflector
extends Intersector

Generic interface for ray reflection with 3D geometry


Method Summary
 Vec3D getReflectedRayPointAtDistance(float dist)
          Returns the point on the reflected ray at given distance from the intersection point
 float getReflectionAngle()
           
 Ray3D reflectRay(Ray3D ray)
          Reflects given ray on the entity's surface
 
Methods inherited from interface toxi.geom.Intersector
getIntersectionDir, getIntersectionDistance, getIntersectionPoint, getNormalAtIntersection, intersectsRay
 

Method Detail

reflectRay

Ray3D reflectRay(Ray3D ray)
Reflects given ray on the entity's surface

Parameters:
ray - incident ray
Returns:
reflected ray starting from intersection point

getReflectionAngle

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

getReflectedRayPointAtDistance

Vec3D 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