|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.geotools.measure.Angle
An angle in degrees. An angle is the amount of rotation needed to bring one line or plane into coincidence with another, generally measured in degrees, sexagesimal degrees or grads.
Latitude
,
Longitude
,
AngleFormat
,
Serialized FormConstructor Summary | |
Angle(double theta)
Contruct a new angle with the specified value. |
|
Angle(java.lang.String string)
Constructs a newly allocated object that represents the angle value represented by the string. |
Method Summary | |
int |
compareTo(java.lang.Object that)
Compares two objects numerically. |
double |
degrees()
Returns the angle value in degrees. |
boolean |
equals(java.lang.Object object)
Compares the specified object with this angle for equality. |
int |
hashCode()
Returns a hash code for this object. |
double |
radians()
Returns the angle value in radians. |
java.lang.String |
toString()
Returns a string representation of this object. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Angle(double theta)
theta
- Angle in degrees.public Angle(java.lang.String string) throws java.lang.NumberFormatException
string
- A string to be converted to an .
java.lang.NumberFormatException
- if the string does not contain a parsable angle.Method Detail |
public double degrees()
public double radians()
public int hashCode()
public boolean equals(java.lang.Object object)
public int compareTo(java.lang.Object that)
Double.compare(double,double)
method.
compareTo
in interface java.lang.Comparable
public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |