Package toxi.geom
Interface Reflector3D
- All Superinterfaces:
Intersector3D
- All Known Implementing Classes:
SphereIntersectorReflector
Generic interface for ray reflection with 3D geometry
-
Method Summary
Modifier and TypeMethodDescriptiongetReflectedRayPointAtDistance(float dist) Returns the point on the reflected ray at given distance from the intersection pointfloatreflectRay(Ray3D ray) Reflects given ray on the entity's surfaceMethods inherited from interface toxi.geom.Intersector3D
getIntersectionData, intersectsRay
-
Method Details
-
getReflectedRayPointAtDistance
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
Reflects given ray on the entity's surface- Parameters:
ray- incident ray- Returns:
- reflected ray starting from intersection point
-