Trait geodesy::AngularUnits

source ·
pub trait AngularUnits {
    // Required methods
    fn to_radians(&self) -> Self;
    fn to_degrees(&self) -> Self;
    fn to_arcsec(&self) -> Self;
    fn to_geo(&self) -> Self;
}
Expand description

Methods for changing the coordinate representation of angles. Dimensionality untold, the methods operate on the first two dimensions only.

Required Methods§

source

fn to_radians(&self) -> Self

Transform the first two elements of a coordinate tuple from degrees to radians

source

fn to_degrees(&self) -> Self

Transform the first two elements of a coordinate tuple from radians to degrees

source

fn to_arcsec(&self) -> Self

Transform the first two elements of a coordinate tuple from radians to seconds of arc.

source

fn to_geo(&self) -> Self

Transform the internal lon/lat(/h/t)-in-radians to lat/lon(/h/t)-in-degrees

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<T> AngularUnits for T
where T: CoordinateTuple + Copy,