| java.lang.Object org.geotools.measure.Angle
All known Subclasses: org.geotools.measure.Longitude, org.geotools.measure.Latitude,
Angle | public class Angle implements Comparable,Serializable(Code) | | 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.
since: 2.0 version: $Id: Angle.java 20874 2006-08-07 10:00:01Z jgarnett $ author: Martin Desruisseaux See Also: Latitude See Also: Longitude See Also: AngleFormat |
Constructor Summary | |
public | Angle(double theta) Contruct a new angle with the specified value. | public | Angle(String string) Constructs a newly allocated
Angle object that represents the angle value
represented by the string. |
Method Summary | |
public int | compareTo(Object that) Compares two
Angle objects numerically. | public double | degrees() Returns the angle value in degrees. | public boolean | equals(Object object) Compares the specified object with this angle for equality. | public int | hashCode() Returns a hash code for this
Angle object. | public double | radians() Returns the angle value in radians. | public String | toString() Returns a string representation of this
Angle object. |
Angle | public Angle(double theta)(Code) | | Contruct a new angle with the specified value.
Parameters: theta - Angle in degrees. |
Angle | public Angle(String string) throws NumberFormatException(Code) | | Constructs a newly allocated
Angle object that represents the angle value
represented by the string. The string should represents an angle in either fractional
degrees (e.g. 45.5°) or degrees with minutes and seconds (e.g. 45°30').
Parameters: string - A string to be converted to an Angle . throws: NumberFormatException - if the string does not contain a parsable angle. |
degrees | public double degrees()(Code) | | Returns the angle value in degrees.
|
equals | public boolean equals(Object object)(Code) | | Compares the specified object with this angle for equality.
|
hashCode | public int hashCode()(Code) | | Returns a hash code for this
Angle object.
|
radians | public double radians()(Code) | | Returns the angle value in radians.
|
toString | public String toString()(Code) | | Returns a string representation of this
Angle object.
|
|
|