pub struct CartesianBoxCentroid;Expand description
Cartesian centroid for a geometry_trait::Box — corner midpoint per dimension.
Mirrors the box_tag arm of
boost/geometry/algorithms/centroid.hpp
(detail::centroid::centroid_box), which returns the midpoint of the
min / max corners.
Trait Implementations§
Source§impl<G> CentroidStrategy<G> for CartesianBoxCentroidwhere
G: BoxTrait,
G::Point: PointTrait + PointMut + Default + Copy,
<<G::Point as PointTrait>::Cs as CoordinateSystem>::Family: SameAs<CartesianFamily>,
impl<G> CentroidStrategy<G> for CartesianBoxCentroidwhere
G: BoxTrait,
G::Point: PointTrait + PointMut + Default + Copy,
<<G::Point as PointTrait>::Cs as CoordinateSystem>::Family: SameAs<CartesianFamily>,
Source§impl Clone for CartesianBoxCentroid
impl Clone for CartesianBoxCentroid
Source§fn clone(&self) -> CartesianBoxCentroid
fn clone(&self) -> CartesianBoxCentroid
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 CartesianBoxCentroid
Source§impl Debug for CartesianBoxCentroid
impl Debug for CartesianBoxCentroid
Source§impl Default for CartesianBoxCentroid
impl Default for CartesianBoxCentroid
Source§fn default() -> CartesianBoxCentroid
fn default() -> CartesianBoxCentroid
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CartesianBoxCentroid
impl RefUnwindSafe for CartesianBoxCentroid
impl Send for CartesianBoxCentroid
impl Sync for CartesianBoxCentroid
impl Unpin for CartesianBoxCentroid
impl UnsafeUnpin for CartesianBoxCentroid
impl UnwindSafe for CartesianBoxCentroid
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