transform_trajectory#

diffct.geometry.transform_trajectory(trajectory, rotation=None, translation=None, *, beam='cone')[source]#

Apply p' = R p + t to points and d' = R d to directions.

Rotation and translation can be shared or have one entry per view. All inputs must share dtype and device. Ordinary tensor operations preserve gradients to the frames and transform parameters.