pub trait CenterOfPoints {
// Required method
fn center_of_points(&self) -> VectorPoint;
}Expand description
Get the center of a bounding box from a collection of VectorPoint
This trait is implemented for:
FeatureGeometryPointGeometryMultiPointGeometrys2json::LineStringGeometryMultiLineStringGeometryMultiPolygonGeometryPoint3DGeometryMultiPoint3DGeometrys2json::LineString3DGeometryMultiLineString3DGeometryMultiPolygon3DGeometryVectorFeatureVectorGeometryVectorPointGeometryVectorMultiPointGeometrys2json::VectorLineStringGeometryVectorMultiLineStringGeometryVectorMultiPolygonGeometryVectorMultiPointVectorMultiLineStringVectorMultiPolygonFeatures&[P]where P implementsGetXYandGetZ
And all specific geometries of the above enums
Required Methods§
Sourcefn center_of_points(&self) -> VectorPoint
fn center_of_points(&self) -> VectorPoint
Get the center of a bounding box from a collection of VectorPoint