|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.tensegrity.graphics.Direction
The class
Direction
is used to represent a direction using an angle in degrees.
| Constructor Summary | |
Direction(double angle)
Constructor |
|
Direction(java.lang.String strValue)
Constructor |
|
| Method Summary | |
static java.lang.String |
angleToString(double angle)
Returns the string representation of the given angle |
boolean |
equals(java.lang.Object obj)
|
double |
getAngle()
Returns the angle of this direction |
int |
hashCode()
|
void |
setAngle(double angle)
Sets the angle of this direction |
static double |
stringToAngle(java.lang.String val)
Converts the given string value to the corresponding angle |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public Direction(double angle)
angle - The angle of this direction in degreespublic Direction(java.lang.String strValue)
strValue - A string representing an angle| Method Detail |
public void setAngle(double angle)
angle - The angle to setpublic double getAngle()
public static java.lang.String angleToString(double angle)
angle - The angle to use
public static double stringToAngle(java.lang.String val)
val - the string to parse
public java.lang.String toString()
public boolean equals(java.lang.Object obj)
public int hashCode()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||