irtk.transform.lookat¶
- irtk.transform.lookat(origin: List[float] | torch.Tensor, target: List[float] | torch.Tensor, up: List[float] | torch.Tensor) torch.Tensor ¶
Compute a ‘look-at’ transformation matrix.
- Parameters:
origin (Union[List[float], torch.Tensor]) – The position of the camera.
target (Union[List[float], torch.Tensor]) – The point the camera is looking at.
up (Union[List[float], torch.Tensor]) – The up vector of the camera.
- Returns:
A 4x4 transformation matrix.
- Return type:
torch.Tensor