bilby.gw.geometry.rotation_matrix_from_delta
- bilby.gw.geometry.rotation_matrix_from_delta(delta_x)
Calculate rotation matrix from a delta vector.
- Parameters:
- delta_x: array-like
3D vector \(\vec{\Delta}x\) representing the separation or orientation.
- Returns:
- array-like
3x3 rotation matrix that rotates the z-axis to align with \(\vec{\Delta}x\) direction.
- bilby.gw.geometry.rotation_matrix_from_delta(delta: numpy.ndarray | list | tuple)