|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjgromacs.data.Angle
public class Angle
Objects of this class represent an angle
| Constructor Summary | |
|---|---|
Angle()
Constructs a new Angle object |
|
Angle(double valueInDegrees)
Constructs a new Angle object of given value in degrees |
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
Returns an identical Angle object |
boolean |
equals(java.lang.Object other)
Returns true if the two angles are identical |
double |
getInDegrees()
Returns the value of angle in degrees |
double |
getInRadians()
Returns the value of angle in radians |
int |
hashCode()
Returns hash code |
void |
setInDegrees(double valueInDegrees)
Sets the value of angle in degrees |
void |
setInRadians(double valueInRadians)
Sets the value of angle in radians |
java.lang.String |
toString()
Returns the String representation of angle |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Angle()
public Angle(double valueInDegrees)
valueInDegrees - value in degrees| Method Detail |
|---|
public double getInDegrees()
public double getInRadians()
public void setInDegrees(double valueInDegrees)
valueInDegrees - value in degreespublic void setInRadians(double valueInRadians)
valueInRadians - value in radianspublic boolean equals(java.lang.Object other)
equals in class java.lang.Objectother - the other anglepublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.Object clone()
clone in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||