center()
Translate a geometry so that its center of mass is at the origin.
Usage
center(
geo,
*,
in_place=False,
)Parameters
geo: Geometry-
Geometry.
in_place: bool = False-
If
True, modifygeoinstead of returning a copy.
Returns
Geometry- The centered geometry.