com.threerings.opengl.util
Interface Intersectable

All Known Subinterfaces:
SceneElement
All Known Implementing Classes:
AreaElement, Articulated, BaseParticleSystem, ComponentBillboard, Compound, Conditional, MetaParticleSystem, Model, Model.Implementation, ParticleSystem, RectangleElement, Scene.Transient, SceneInfluencer, Scripted, ShapeConfigElement, ShapeModel, ShapeSceneElement, SimpleSceneElement, Static, TextBillboard, ViewerAffecter, Wrapper

public interface Intersectable

A generic interface for objects that can be tested for intersections.


Method Summary
 boolean getIntersection(Ray3D ray, Vector3f result)
          Finds the intersection of a ray with this object and places it in the supplied vector (if it exists).
 

Method Detail

getIntersection

boolean getIntersection(Ray3D ray,
                        Vector3f result)
Finds the intersection of a ray with this object and places it in the supplied vector (if it exists).

Returns:
true if the ray intersected the object (in which case the result will contain the point of intersection), false otherwise.


Copyright © 2011. All Rights Reserved.