scipp.spatial.translations#

scipp.spatial.translations(*, dims, unit=Unit(1), values)#

Creates translation transformations from multiple 3-vectors.

Parameters:
  • dims (Sequence[str]) – The dimensions of the created variable

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

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

Returns:

Variable – An array variable of dtype translation3.