|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jgromacs.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 |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Angle()
public Angle(double valueInDegrees)
valueInDegrees
- value in degreesMethod 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.Object
other
- the other anglepublic int hashCode()
hashCode
in class java.lang.Object
public java.lang.Object clone()
clone
in class java.lang.Object
public 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 |