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§
Required Methods§
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 CartesianAzimuthwhere
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.
impl<P1, P2> AzimuthStrategy<P1, P2> for CartesianAzimuthwhere
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 GeographicAzimuthwhere
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.
impl<P1, P2> AzimuthStrategy<P1, P2> for GeographicAzimuthwhere
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 Rhumbwhere
P1: Point<Scalar = f64>,
P2: Point<Scalar = f64, Cs = P1::Cs>,
P1::Cs: HasAngularUnits + CoordinateSystem,
<P1::Cs as CoordinateSystem>::Family: RhumbFamily,
impl<P1, P2> AzimuthStrategy<P1, P2> for Rhumbwhere
P1: Point<Scalar = f64>,
P2: Point<Scalar = f64, Cs = P1::Cs>,
P1::Cs: HasAngularUnits + CoordinateSystem,
<P1::Cs as CoordinateSystem>::Family: RhumbFamily,
Source§impl<P1, P2> AzimuthStrategy<P1, P2> for SphericalAzimuthwhere
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.
impl<P1, P2> AzimuthStrategy<P1, P2> for SphericalAzimuthwhere
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.