com.partnersoft.v3x.apps.MapBrowser.rover
Class RoverIconRotations

java.lang.Object
  extended by com.partnersoft.v3x.apps.MapBrowser.rover.RoverIconRotations

public class RoverIconRotations
extends java.lang.Object

This holds and manages the various rotations of a RoverIcon. These are generated only when needed, then saved for future use. Rotations are numbered; there are 16 possible, counted from due east (zero degrees) and proceeding counter clockwise.


Field Summary
static int NUMBER_OF_ROTATIONS
           
 
Constructor Summary
RoverIconRotations(RoverIcon original)
           
 
Method Summary
 RoverIcon getRotation(float theta)
          Gets the rotation closest to the given theta in radians.
 RoverIcon getRotation(int index)
          Gets the numbered rotation; creates it if it hasn't been gotten before.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NUMBER_OF_ROTATIONS

public static final int NUMBER_OF_ROTATIONS
See Also:
Constant Field Values
Constructor Detail

RoverIconRotations

public RoverIconRotations(RoverIcon original)
Method Detail

getRotation

public RoverIcon getRotation(int index)
Gets the numbered rotation; creates it if it hasn't been gotten before.


getRotation

public RoverIcon getRotation(float theta)
Gets the rotation closest to the given theta in radians.