org.geotoolkit.measure
Class Longitude
Object
Angle
Longitude
- All Implemented Interfaces:
- Serializable, Comparable<Angle>
@Immutable
public final class Longitude
- extends Angle
A longitude angle. Positive longitudes are East, while negative longitudes are West.
- Since:
- 1.0
- Version:
- 3.00
- Author:
- Martin Desruisseaux (MPO, IRD)
- See Also:
Latitude,
AngleFormat,
Serialized Form
- Module:
|
Field Summary |
static double |
MAX_VALUE
Maximum legal value for longitude (+180°). |
static double |
MIN_VALUE
Minimum legal value for longitude (-180°). |
|
Constructor Summary |
Longitude(double theta)
Contruct a new longitude with the specified value. |
Longitude(String theta)
Constructs a newly allocated Longitude object that
represents the longitude value represented by the string. |
MIN_VALUE
public static final double MIN_VALUE
- Minimum legal value for longitude (-180°).
- See Also:
- Constant Field Values
MAX_VALUE
public static final double MAX_VALUE
- Maximum legal value for longitude (+180°).
- See Also:
- Constant Field Values
Longitude
public Longitude(double theta)
- Contruct a new longitude with the specified value.
- Parameters:
theta - Angle in degrees.
Longitude
public Longitude(String theta)
throws NumberFormatException
- Constructs a newly allocated
Longitude object that
represents the longitude 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').
The hemisphere (E or W) is optional (default to East).
- Parameters:
theta - A string to be converted to a Longitude.
- Throws:
NumberFormatException - if the string does not contain a parsable longitude.
Copyright © 2009-2012 Geotoolkit.org. All Rights Reserved.