示例#1
0
def test_segment_radial_dist():
    seg = ((11,11,11), (33, 33, 33))
    nt.assert_almost_equal(mm.segment_radial_dist(seg, (0,0,0)),
                           mm.point_dist((0,0,0), (22,22,22)))
示例#2
0
def test_segment_radial_dist():
    seg = ((11, 11, 11), (33, 33, 33))
    assert_almost_equal(mm.segment_radial_dist(seg, (0, 0, 0)),
                           mm.point_dist((0, 0, 0), (22, 22, 22)))
示例#3
0
 def _rad_dist(segment):
     '''Capture pos and invoke radial distance calculation'''
     return mm.segment_radial_dist(segment, pos)