Given camera_position_world and the transpose of the rotation matrix R_t, calculate the translation vector T.
(R_t, camera_position)
| 137 | return QW, QX, QY, QZ |
| 138 | |
| 139 | def calculate_camera_position_from_world(R_t, camera_position): |
| 140 | """ |
| 141 | Given camera_position_world and the transpose of the rotation matrix R_t, |
| 142 | calculate the translation vector T. |
| 143 | """ |
| 144 | T = -R_t.dot(camera_position) |
| 145 | return T |
| 146 | |
| 147 | def world2cam(x, y, z, roll, pitch, yaw): |
| 148 | R = euler_to_rotation_matrix(roll, pitch, yaw) |
no outgoing calls
no test coverage detected