ballWorlds
Interface Selectable
- All Known Subinterfaces:
- Ball
public interface Selectable
A Selectable is an object that can be selected by determining its distance
from a given point. It is typically used to select the Ball in a World that
is closest to the mouse point.
- Author:
- David Mutchler, Salman Azhar, Curt Clifton and others, January 2005.
Modified September 2008, September 2009.
|
Method Summary |
double |
distanceFrom(Point2D point)
Returns the distance that this Selectable object is from the given
Point2D. |
distanceFrom
double distanceFrom(Point2D point)
- Returns the distance that this Selectable object is from the given
Point2D.
- Parameters:
point - the Point2D from which the distance is desired.
- Returns:
- the distance that this Selectable object is from the given
Point2D.