[][src]Crate geod

Geodesy types and primitives

Macros

arr_with

Creates an array of given size from a slice

bool_enum

Implements simple two variants enum associated with the boolean type

enum_trivial_from_impl

Implements From trait for newtype-like enum variants

impl_angle_ops

Implement addition and subtraction operations on the UnitsAngle types. $sum_t should be able to hold a sum of any units without the risk of overflow.

impl_angle_traits

Implement the Angle traits for the type representing degrees

impl_conv_traits

Implement the conversion traits for the type representing degrees

try_from_tuples_and_arrays

Allows to implement some TryFrom implementations for a type:

Structs

AccurateDegree

The structure can accurately store either decimal fractions of the degree (with the 10^-6 degrees precision) or degree, minute, second (with the 10^-2 arcsecond precision).

DecimalDegree

High-precision (10^-7 degrees) and compact (32 bits) angular type.

Latitude

The angle measured between the equatorial plane and the point along the meridian https://en.wikipedia.org/wiki/Latitude

Longitude

The angle measured on the equatorial plane between the meridian of the point and the prime meridian (Greenwich, UK) https://en.wikipedia.org/wiki/Longitude

Point

The point on the surface of an ellipsoid, represented as the pair (latitude, longitude)

Traits

Angle

Angle with ordering, addition/subtraction operations and the abilities to construct itself from a string or float number