Function Longitude.fromDegrees
Make an east/west geographic longitude from degrees.
Use this for the longitude of a position. Both -180 and +180 degrees
are accepted; call normalized when one unique representation is needed.
Parameters
| Name | Description |
|---|---|
| degrees | Longitude in the closed interval [-180,+180] degrees. |
Returns
The constructed longitude; both antimeridian endpoints are preserved.
Throws
GeodesyValueException for non-finite or out-of-domain input.
Example
Example constructing a longitude from degrees.
import geodesy;
const longitude = Longitude!double .fromDegrees(16.37208);
assert(longitude .degrees > 16.0);