com.partnersoft.v3x.apps.MapBrowser.rover
Class RoverIconRotations
java.lang.Object
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.
|
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 |
NUMBER_OF_ROTATIONS
public static final int NUMBER_OF_ROTATIONS
- See Also:
- Constant Field Values
RoverIconRotations
public RoverIconRotations(RoverIcon original)
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.