pub struct ShoelaceArea;Expand description
Cartesian shoelace area for a Ring.
Mirrors boost::geometry::strategy::area::cartesian<> from
strategy/cartesian/area.hpp:50-120 applied to a ring through the
dispatch::area<Ring, ring_tag> arm at algorithms/area.hpp:154-157.
Sign convention follows Boost: rings whose vertices match the
declared PointOrder yield a positive area, rings traversed in
the opposite direction yield a negative area
(test/algorithms/area/area.cpp:63-64).
Trait Implementations§
Source§impl<R> AreaStrategy<R> for ShoelaceAreawhere
R: Ring,
<R::Point as Point>::Cs: CoordinateSystem,
<<R::Point as Point>::Cs as CoordinateSystem>::Family: SameAs<CartesianFamily>,
impl<R> AreaStrategy<R> for ShoelaceAreawhere
R: Ring,
<R::Point as Point>::Cs: CoordinateSystem,
<<R::Point as Point>::Cs as CoordinateSystem>::Family: SameAs<CartesianFamily>,
Source§impl Clone for ShoelaceArea
impl Clone for ShoelaceArea
Source§fn clone(&self) -> ShoelaceArea
fn clone(&self) -> ShoelaceArea
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 ShoelaceArea
Source§impl Debug for ShoelaceArea
impl Debug for ShoelaceArea
Source§impl Default for ShoelaceArea
impl Default for ShoelaceArea
Source§fn default() -> ShoelaceArea
fn default() -> ShoelaceArea
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ShoelaceArea
impl RefUnwindSafe for ShoelaceArea
impl Send for ShoelaceArea
impl Sync for ShoelaceArea
impl Unpin for ShoelaceArea
impl UnsafeUnpin for ShoelaceArea
impl UnwindSafe for ShoelaceArea
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