irtk.transform.translate

irtk.transform.translate(t_vec: List[float] | torch.Tensor) torch.Tensor

Create a translation matrix.

Parameters:

t_vec (Union[List[float], torch.Tensor]) – The translation vector.

Returns:

A 4x4 translation matrix.

Return type:

torch.Tensor