rotate
- lstchain.reco.utils.rotate(flat_object, degree=0, origin=(0, 0))
Rotate 2D object around given axle
- Parameters:
- array-like flat_object: 2D object to rotate
- tuple origin: rotation axle coordinates
- int degree: rotation angle in degrees
- Returns:
- NDArray with new coordinates