def test_roll_camera_random_zero(transform_B): transform = roll_camera(transform_B.copy(), 0.0) assert np.allclose(transform_B, transform)
def test_roll_camera_random_axis(transform_B): for arg in range(100): angle = np.random.uniform(0, 2 * np.pi) transform = roll_camera(transform_B.copy(), angle) assert np.allclose(transform[2, :3], transform_B[2, :3])
def test_roll_camera_origin_zero(transform_A): transform = roll_camera(transform_A.copy(), 0.0) assert np.allclose(transform_A, transform)