isaacgym_utils/math_utils.py
def project_to_line(u, u0, u1):
    ''' Finds v, the projection of u onto the line crossing u0 and u1
    '''

    u10 = u1 - u0
    v = (u - u0) @ u10 / (u10 @ u10) * u10 + u0
    return v
 Finds v, the projection of u onto the line crossing u0 and u1
    
Finds v, the projection of u onto the line crossing u0 and u1
Finds v the projection of u onto the line crossing u0 and u1
def project_to_line(u, u0, u1):
    u10 = u1 - u0
    v = (u - u0) @ u10 / (u10 @ u10) * u10 + u0
    return v
def project_to_line ( u , u0 , u1 ) : u10 = u1 - u0 v = ( u - u0 ) @ u10 / ( u10 @ u10 ) * u10 + u0 return v
Finds v, the projection of u onto the line crossing u0 and u1
Finds v the projection of u onto the line crossing u0 and u1
''' Finds v, the projection of u onto the line crossing u0 and u1
    '''
u
u0
u1