pub struct CartesianAzimuth;Expand description
Cartesian azimuth: atan2(dx, dy), in radians, measured clockwise
from the positive y-axis (i.e. 0 points along +y (“North”), π/2
along +x (“East”)).
Mirrors boost::geometry::strategy::azimuth::cartesian from
boost/geometry/strategies/cartesian/azimuth.hpp:74-76, whose
comment is explicit: “azimuth 0 is at Y axis, increasing right — as
in spherical/geographic where 0 is at North axis”. This keeps the
Cartesian bearing convention consistent with the crate’s spherical
and geographic azimuths, which also measure clockwise from North.
Trait Implementations§
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 Clone for CartesianAzimuth
impl Clone for CartesianAzimuth
Source§fn clone(&self) -> CartesianAzimuth
fn clone(&self) -> CartesianAzimuth
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CartesianAzimuth
Source§impl Debug for CartesianAzimuth
impl Debug for CartesianAzimuth
Source§impl Default for CartesianAzimuth
impl Default for CartesianAzimuth
Source§fn default() -> CartesianAzimuth
fn default() -> CartesianAzimuth
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CartesianAzimuth
impl RefUnwindSafe for CartesianAzimuth
impl Send for CartesianAzimuth
impl Sync for CartesianAzimuth
impl Unpin for CartesianAzimuth
impl UnsafeUnpin for CartesianAzimuth
impl UnwindSafe for CartesianAzimuth
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more