pub struct SphericalLength {
pub haversine: Haversine,
}Expand description
Spherical length: sum of Haversine distances between consecutive points.
Carries the same radius parameter as Haversine
so callers control the sphere size (Earth ≈ 6_372_795 m by Boost
convention). Default::default() produces
SphericalLength { haversine: Haversine::EARTH }.
Mirrors boost::geometry::strategies::length::spherical<> from
strategies/length/spherical.hpp.
Fields§
§haversine: HaversineThe inner Haversine distance kernel summed over each segment.
Trait Implementations§
Source§impl Clone for SphericalLength
impl Clone for SphericalLength
Source§fn clone(&self) -> SphericalLength
fn clone(&self) -> SphericalLength
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 SphericalLength
Source§impl Debug for SphericalLength
impl Debug for SphericalLength
Source§impl Default for SphericalLength
impl Default for SphericalLength
Source§fn default() -> SphericalLength
fn default() -> SphericalLength
Returns the “default value” for a type. Read more
Source§impl<L> LengthStrategy<L> for SphericalLengthwhere
L: Linestring,
<L::Point as Point>::Cs: CoordinateSystem,
<<L::Point as Point>::Cs as CoordinateSystem>::Family: SameAs<SphericalFamily>,
Haversine: DistanceStrategy<L::Point, L::Point, Out = <L::Point as Point>::Scalar>,
impl<L> LengthStrategy<L> for SphericalLengthwhere
L: Linestring,
<L::Point as Point>::Cs: CoordinateSystem,
<<L::Point as Point>::Cs as CoordinateSystem>::Family: SameAs<SphericalFamily>,
Haversine: DistanceStrategy<L::Point, L::Point, Out = <L::Point as Point>::Scalar>,
Auto Trait Implementations§
impl Freeze for SphericalLength
impl RefUnwindSafe for SphericalLength
impl Send for SphericalLength
impl Sync for SphericalLength
impl Unpin for SphericalLength
impl UnsafeUnpin for SphericalLength
impl UnwindSafe for SphericalLength
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