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.CloneableObjects of this class represent an angle
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()Returns an identical Angle objectbooleanequals(java.lang.Object other)Returns true if the two angles are identicaldoublegetInDegrees()Returns the value of angle in degreesdoublegetInRadians()Returns the value of angle in radiansinthashCode()Returns hash codevoidsetInDegrees(double valueInDegrees)Sets the value of angle in degreesvoidsetInRadians(double valueInRadians)Sets the value of angle in radiansjava.lang.StringtoString()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:
equalsin classjava.lang.Object- Parameters:
other- the other angle
-
hashCode
public int hashCode()
Returns hash code- Overrides:
hashCodein classjava.lang.Object
-
clone
public java.lang.Object clone()
Returns an identical Angle object- Overrides:
clonein classjava.lang.Object- Returns:
- clone of the angle
-
toString
public java.lang.String toString()
Returns the String representation of angle- Overrides:
toStringin classjava.lang.Object- Returns:
- String representation
-
-