pub struct CartesianSegmentCentroid;Expand description
Cartesian centroid for a geometry_trait::Segment — (start + end) / 2.
Mirrors the segment_tag arm of
boost/geometry/algorithms/centroid.hpp, which returns the segment
midpoint.
Trait Implementations§
Source§impl<G> CentroidStrategy<G> for CartesianSegmentCentroidwhere
G: SegmentTrait,
G::Point: PointTrait + PointMut + Default + Copy,
<<G::Point as PointTrait>::Cs as CoordinateSystem>::Family: SameAs<CartesianFamily>,
impl<G> CentroidStrategy<G> for CartesianSegmentCentroidwhere
G: SegmentTrait,
G::Point: PointTrait + PointMut + Default + Copy,
<<G::Point as PointTrait>::Cs as CoordinateSystem>::Family: SameAs<CartesianFamily>,
Source§impl Clone for CartesianSegmentCentroid
impl Clone for CartesianSegmentCentroid
Source§fn clone(&self) -> CartesianSegmentCentroid
fn clone(&self) -> CartesianSegmentCentroid
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 CartesianSegmentCentroid
Source§impl Debug for CartesianSegmentCentroid
impl Debug for CartesianSegmentCentroid
Source§impl Default for CartesianSegmentCentroid
impl Default for CartesianSegmentCentroid
Source§fn default() -> CartesianSegmentCentroid
fn default() -> CartesianSegmentCentroid
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CartesianSegmentCentroid
impl RefUnwindSafe for CartesianSegmentCentroid
impl Send for CartesianSegmentCentroid
impl Sync for CartesianSegmentCentroid
impl Unpin for CartesianSegmentCentroid
impl UnsafeUnpin for CartesianSegmentCentroid
impl UnwindSafe for CartesianSegmentCentroid
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