/*
* Pickable.java
*
* Object that receives mouse interaction from the 3d viewport.
*
* 2012 Brandon Reiss. All Rights Reserved. Do not duplicate or distribute
* without the author's consent.
*/
package com.brandonreiss.interactive;
import com.brandonreiss.math.Ray;
///A pickable object in 3d space.
public interface Pickable {
///Test intersection and return the distance.
///Positive distance when intersection else -1
public double testIntersection(Ray r);
///Pick this object.
public void pick();
///Mouse over this object.
public void mouseOver();
}