def test_depth(self): cam = Camera() pos_pt = numpy.array([1,0,1]) neg_pt = numpy.array([0,0,-100]) nose.tools.assert_equal(cam.depth(pos_pt), 1) nose.tools.assert_equal(cam.depth(neg_pt), -100)
def test_depth(self): cam = Camera() pos_pt = [[1], [0], [1]] neg_pt = [[0], [0], [-100]] nose.tools.assert_equal(cam.depth(pos_pt), 1) nose.tools.assert_equal(cam.depth(neg_pt), -100)
def test_depth(self): cam = Camera() pos_pt = numpy.array([1, 0, 1]) neg_pt = numpy.array([0, 0, -100]) nose.tools.assert_equal(cam.depth(pos_pt), 1) nose.tools.assert_equal(cam.depth(neg_pt), -100)