irtk.transform.batched_transform_dir

irtk.transform.batched_transform_dir(mat: torch.Tensor, vec: torch.Tensor) torch.Tensor

Apply a batched transformation to direction vectors.

Parameters:
  • mat (torch.Tensor) – A 4x4 transformation matrix.

  • vec (torch.Tensor) – A batch of 3D direction vectors.

Returns:

The transformed direction vectors.

Return type:

torch.Tensor