geoutils.PointCloud.translate

geoutils.PointCloud.translate#

PointCloud.translate(xoff=0.0, yoff=0.0, zoff=0.0, inplace=False)#

Shift a vector by a (x,y) offset, and optionally a z offset.

The shifting only updates the coordinates (data is untouched).

Parameters:
  • xoff (float) – Translation x offset.

  • yoff (float) – Translation y offset.

  • zoff (float) – Translation z offset.

  • inplace (bool) – Whether to modify the raster in-place.

Return type:

Optional[TypeVar(VectorType, bound= Vector)]

Returns:

Shifted vector (or None if inplace).