Package org.apache.sis.measure
Class ElevationAngle
java.lang.Object
org.apache.sis.measure.Angle
org.apache.sis.measure.ElevationAngle
- All Implemented Interfaces:
Serializable
,Comparable<Angle>
,Formattable
The angular height of an object measured from the horizontal plane.
The elevation angle is part of local topocentric coordinates together with azimuth and distance.
For visible objects the elevation is an angle between 0° and 90°.
Note:
Elevation angle and altitude angle may be used interchangeably.
Both altitude and elevation words are also used to describe the
height in meters above sea level.
Immutability and thread safety
This final class is immutable and thus inherently thread-safe.- Since:
- 0.4
- Version:
- 0.4
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ElevationAngle
An elevation angle of -90° for an imaginary point directly below a location.private static final long
Serial number for inter-operability with different versions.static final ElevationAngle
An elevation angle of 90° for an imaginary point directly above a location. -
Constructor Summary
ConstructorsConstructorDescriptionElevationAngle
(double ε) Constructs a new elevation angle with the specified angular value.ElevationAngle
(String string) Constructs a newly allocatedElevationAngle
object that contain the angular value represented by the string. -
Method Summary
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDSerial number for inter-operability with different versions.- See Also:
-
ZENITH
An elevation angle of 90° for an imaginary point directly above a location. This is the opposite ofNADIR
direction. -
NADIR
An elevation angle of -90° for an imaginary point directly below a location. This is the opposite ofZENITH
direction.
-
-
Constructor Details
-
ElevationAngle
public ElevationAngle(double ε) Constructs a new elevation angle with the specified angular value.- Parameters:
\u03b5
- elevation angle value in decimal degrees.
-
ElevationAngle
Constructs a newly allocatedElevationAngle
object that contain the angular value represented by the string. The string should represent 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 anElevationAngle
.- Throws:
NumberFormatException
- if the string does not contain a parsable angle, or represents an elevation angle.
-