Package jgromacs.data
Class Angle
- java.lang.Object
-
- jgromacs.data.Angle
-
- All Implemented Interfaces:
java.lang.Cloneable
public class Angle extends java.lang.Object implements java.lang.Cloneable
Objects of this class represent an angle
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
clone()
Returns an identical Angle objectboolean
equals(java.lang.Object other)
Returns true if the two angles are identicaldouble
getInDegrees()
Returns the value of angle in degreesdouble
getInRadians()
Returns the value of angle in radiansint
hashCode()
Returns hash codevoid
setInDegrees(double valueInDegrees)
Sets the value of angle in degreesvoid
setInRadians(double valueInRadians)
Sets the value of angle in radiansjava.lang.String
toString()
Returns the String representation of angle
-
-
-
Method Detail
-
getInDegrees
public double getInDegrees()
Returns the value of angle in degrees- Returns:
- value in degrees
-
getInRadians
public double getInRadians()
Returns the value of angle in radians- Returns:
- value in radians
-
setInDegrees
public void setInDegrees(double valueInDegrees)
Sets the value of angle in degrees- Parameters:
valueInDegrees
- value in degrees
-
setInRadians
public void setInRadians(double valueInRadians)
Sets the value of angle in radians- Parameters:
valueInRadians
- value in radians
-
equals
public boolean equals(java.lang.Object other)
Returns true if the two angles are identical- Overrides:
equals
in classjava.lang.Object
- Parameters:
other
- the other angle
-
hashCode
public int hashCode()
Returns hash code- Overrides:
hashCode
in classjava.lang.Object
-
clone
public java.lang.Object clone()
Returns an identical Angle object- Overrides:
clone
in classjava.lang.Object
- Returns:
- clone of the angle
-
toString
public java.lang.String toString()
Returns the String representation of angle- Overrides:
toString
in classjava.lang.Object
- Returns:
- String representation
-
-