示例#1
0
def test_translate_camera_random_zero(transform_B):
    transform = translate_camera(transform_B.copy(), 0.0)
    assert np.allclose(transform, transform_B)
示例#2
0
def test_translate_camera_random_axis(transform_B):
    for arg in range(100):
        translation = np.random.uniform(-10, 10, 2)
        transform = translate_camera(transform_B.copy(), translation)
        assert np.allclose(transform[:3, :3], transform_B[:3, :3])
示例#3
0
def test_translate_camera_origin_zero(transform_A):
    transform = translate_camera(transform_A.copy(), 0.0)
    assert np.allclose(transform, transform_A)