pub struct CartesianLength;Expand description
Cartesian length: sum of Pythagorean distances between consecutive points (linestring case).
Mirrors boost::geometry::strategies::length::cartesian<> from
strategies/length/cartesian.hpp:29-39. The strategy carries no
state — cartesian<>::distance(p1, p2) returns a fresh
strategy::distance::pythagoras<> each call, which on the Rust
side is the unit-struct Pythagoras used directly below.
Trait Implementations§
Source§impl Clone for CartesianLength
impl Clone for CartesianLength
Source§fn clone(&self) -> CartesianLength
fn clone(&self) -> CartesianLength
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 CartesianLength
Source§impl Debug for CartesianLength
impl Debug for CartesianLength
Source§impl Default for CartesianLength
impl Default for CartesianLength
Source§fn default() -> CartesianLength
fn default() -> CartesianLength
Returns the “default value” for a type. Read more
Source§impl<L> LengthStrategy<L> for CartesianLengthwhere
L: Linestring,
<L::Point as Point>::Cs: CoordinateSystem,
<<L::Point as Point>::Cs as CoordinateSystem>::Family: SameAs<CartesianFamily>,
impl<L> LengthStrategy<L> for CartesianLengthwhere
L: Linestring,
<L::Point as Point>::Cs: CoordinateSystem,
<<L::Point as Point>::Cs as CoordinateSystem>::Family: SameAs<CartesianFamily>,
Auto Trait Implementations§
impl Freeze for CartesianLength
impl RefUnwindSafe for CartesianLength
impl Send for CartesianLength
impl Sync for CartesianLength
impl Unpin for CartesianLength
impl UnsafeUnpin for CartesianLength
impl UnwindSafe for CartesianLength
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