geoutils.PointCloud.translate

geoutils.PointCloud.translate#

PointCloud.translate(xoff=0.0, yoff=0.0, zoff=0.0, inplace=False)#
Overloads:
  • self (VectorType), xoff (float), yoff (float), zoff (float), inplace (Literal[False]) → VectorType

  • self (VectorType), xoff (float), yoff (float), zoff (float), inplace (Literal[True]) → None

  • self (VectorType), xoff (float), yoff (float), zoff (float), inplace (bool) → VectorType | None

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.

Returns:

Shifted vector (or None if inplace).