scipp.spatial.translation#

scipp.spatial.translation(*, unit=Unit(1), value)#

Creates a translation transformation from a single provided 3-vector.

Parameters
  • unit (Union[Unit, str], default: Unit(1)) – The unit of the translation

  • value (Union[ndarray, list]) – A list or NumPy array of 3 items

Returns

A scalar variable of dtype translation3.