예제 #1
0
def test_roll_camera_random_zero(transform_B):
    transform = roll_camera(transform_B.copy(), 0.0)
    assert np.allclose(transform_B, transform)
예제 #2
0
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])
예제 #3
0
def test_roll_camera_origin_zero(transform_A):
    transform = roll_camera(transform_A.copy(), 0.0)
    assert np.allclose(transform_A, transform)