ballWorlds
Interface BallDescriber

All Superinterfaces:
Drawable
All Known Subinterfaces:
Ball

public interface BallDescriber
extends Drawable

A BallDescriber is an object that can describe (return) its velocity, size, and mass, in addition to its inherited (from Drawable) ability to describe its Color and Shape.

Author:
David Mutchler, Salman Azhar, Curt Clifton and others, January 2005. Modified September 2008, September 2009.

Method Summary
 double getMass()
          Returns the mass of this BallDescriber.
 double getSize()
          Returns the size of this BallDescriber.
 Point2D getVelocity()
          Returns the velocity (i.e., speed in x-direction and speed in y-direction) of this BallDescriber.
 
Methods inherited from interface ballWorlds.Drawable
getColor, getShape
 

Method Detail

getVelocity

Point2D getVelocity()
Returns the velocity (i.e., speed in x-direction and speed in y-direction) of this BallDescriber.

Returns:
the velocity (i.e., speed in x-direction and speed in y-direction) of this BallDescriber.

getMass

double getMass()
Returns the mass of this BallDescriber.

Returns:
the mass of this BallDescriber.

getSize

double getSize()
Returns the size of this BallDescriber.

Returns:
the size of this BallDescriber.