bbi.math.utils¶
- calculate_rotation_matrix_for_vector(from_vec: Vector3, to_vec: Vector3) ndarray ¶
Calculates the 3D rotation matrix that rotates one Vector3 to align with another Vector3.
- matrix_to_euler_degrees(r_mat: ndarray) Vector3 ¶
Extract Euler angles (roll, pitch, yaw) from a rotation matrix. The results are left-handed, x-foward z-up y-right coordinate system.
- Parameters:
R (ndarray) – A 3x3 rotation matrix.
- Returns:
Vector containing the Euler angles (yaw, pitch, roll) in degrees.
- Return type: