scipp.spatial.affine_transform#

scipp.spatial.affine_transform(*, unit=dimensionless, value)#

Initializes a single affine transformation from the provided affine matrix coefficients.

Parameters
  • unit (Union[Unit, str], default: dimensionless) – The unit of the affine transformation’s translation component.

  • value (Union[ndarray, list]) – A 4x4 matrix of affine coefficients.