Skip to main content

AzimuthStrategy

Trait AzimuthStrategy 

Source
pub trait AzimuthStrategy<P1: Point, P2: Point> {
    type Out;

    // Required method
    fn azimuth(&self, p1: &P1, p2: &P2) -> Self::Out;
}
Expand description

Strategy computing the azimuth (bearing) from one point to another.

Required Associated Types§

Source

type Out

The angle type (radians for the Cartesian implementation).

Required Methods§

Source

fn azimuth(&self, p1: &P1, p2: &P2) -> Self::Out

The signed angle from p1 to p2.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<P1, P2> AzimuthStrategy<P1, P2> for CartesianAzimuth
where P1: Point<Scalar = f64>, P2: Point<Scalar = f64>, <P1::Cs as CoordinateSystem>::Family: SameAs<CartesianFamily>, <P2::Cs as CoordinateSystem>::Family: SameAs<CartesianFamily>,

Available on crate feature std only.
Source§

impl<P1, P2> AzimuthStrategy<P1, P2> for GeographicAzimuth
where P1: Point<Scalar = f64>, P2: Point<Scalar = f64>, P1::Cs: HasAngularUnits, P2::Cs: HasAngularUnits, <P1::Cs as CoordinateSystem>::Family: SameAs<GeographicFamily>, <P2::Cs as CoordinateSystem>::Family: SameAs<GeographicFamily>,

Available on crate feature std only.
Source§

impl<P1, P2> AzimuthStrategy<P1, P2> for SphericalAzimuth
where P1: Point<Scalar = f64>, P2: Point<Scalar = f64>, P1::Cs: HasAngularUnits, P2::Cs: HasAngularUnits, <P1::Cs as CoordinateSystem>::Family: SameAs<SphericalFamily>, <P2::Cs as CoordinateSystem>::Family: SameAs<SphericalFamily>,

Available on crate feature std only.