def pt_between_pts(a=(0.0, 0.0), b=(0.0, 0.0), t=0.5):
    '''Return the point between two points on N dimensions.
    '''
    assert isinstance(a, tuple)
    assert isinstance(b, tuple)
    l_pt = len(a)
    assert l_pt > 1
    assert l_pt == len(b)
    for i in a:
        assert isinstance(i, float)
    for i in b:
        assert isinstance(i, float)
    assert isinstance(t, float)
    assert 0 <= t <= 1

    return tuple([ ((b[i] - a[i]) * t) + a[i] for i in range(l_pt) ])
def pt_between_pts ( a = ( 0.0 , 0.0 ) , b = ( 0.0 , 0.0 ) , t = 0.5 ) : assert isinstance ( a , tuple ) assert isinstance ( b , tuple ) l_pt = len ( a ) assert l_pt > 1 assert l_pt == len ( b ) for i in a : assert isinstance ( i , float ) for i in b : assert isinstance ( i , float ) assert isinstance ( t , float ) assert 0 <= t <= 1 return tuple ( [ ( ( b [ i ] - a [ i ] ) * t ) + a [ i ] for i in range ( l_pt ) ] )
Return the point between two points on N dimensions.