pub struct CartesianRingCentroid;Expand description
Cartesian centroid for a geometry_trait::Ring — the Bashein–Detmer formula
(signed-area-weighted vertex pairs).
Mirrors boost::geometry::strategy::centroid::bashein_detmer from
strategies/cartesian/centroid_bashein_detmer.hpp:173-231, reached
through the areal_tag arm of
boost/geometry/algorithms/centroid.hpp.
Trait Implementations§
Source§impl<G> CentroidStrategy<G> for CartesianRingCentroidwhere
G: RingTrait,
G::Point: PointTrait + PointMut + Default + Copy,
<<G::Point as PointTrait>::Cs as CoordinateSystem>::Family: SameAs<CartesianFamily>,
ShoelaceArea: AreaStrategy<G, Out = <G::Point as PointTrait>::Scalar>,
impl<G> CentroidStrategy<G> for CartesianRingCentroidwhere
G: RingTrait,
G::Point: PointTrait + PointMut + Default + Copy,
<<G::Point as PointTrait>::Cs as CoordinateSystem>::Family: SameAs<CartesianFamily>,
ShoelaceArea: AreaStrategy<G, Out = <G::Point as PointTrait>::Scalar>,
Source§impl Clone for CartesianRingCentroid
impl Clone for CartesianRingCentroid
Source§fn clone(&self) -> CartesianRingCentroid
fn clone(&self) -> CartesianRingCentroid
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 CartesianRingCentroid
Source§impl Debug for CartesianRingCentroid
impl Debug for CartesianRingCentroid
Source§impl Default for CartesianRingCentroid
impl Default for CartesianRingCentroid
Source§fn default() -> CartesianRingCentroid
fn default() -> CartesianRingCentroid
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CartesianRingCentroid
impl RefUnwindSafe for CartesianRingCentroid
impl Send for CartesianRingCentroid
impl Sync for CartesianRingCentroid
impl Unpin for CartesianRingCentroid
impl UnsafeUnpin for CartesianRingCentroid
impl UnwindSafe for CartesianRingCentroid
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