irtk.transform.batched_transform_pos¶
- irtk.transform.batched_transform_pos(mat: torch.Tensor, vec: torch.Tensor) torch.Tensor ¶
Apply a batched transformation to position vectors.
- Parameters:
mat (torch.Tensor) – A 4x4 transformation matrix.
vec (torch.Tensor) – A batch of 3D position vectors.
- Returns:
The transformed position vectors.
- Return type:
torch.Tensor