scipp.spatial.translation#

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

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

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

  • value (ndarray[Any, dtype[TypeVar(_Float, bound= float64 | float32, covariant=True)]] | Sequence[TypeVar(_Float, bound= float64 | float32, covariant=True)]) – A list or NumPy array of 3 items

Returns:

Variable – A scalar variable of dtype translation3.