parameters: (self, line1, line2)
return_statement: return np.array([x, y], dtype=np.float32)
docstring: line1 and line2 in  0=ax+by+c form, compute the cross point of line1 and line2
docstring_summary: line1 and line2 in  0=ax+by+c form, compute the cross point of line1 and line2
docstring_tokens: line1 and line2 in 0 = ax + by + c form compute the cross point of line1 and line2
function: def line_cross_point(self, line1, line2):
          """
          line1 and line2 in  0=ax+by+c form, compute the cross point of line1 and line2
          """
          a1, b1, c1 = line1
          a2, b2, c2 = line2
          d = a1 * b2 - a2 * b1
  
          if d == 0:
              #print("line1", line1)
              #print("line2", line2)
              print('Cross point does not exist')
              return np.array([0, 0], dtype=np.float32)
          else:
              x = (b1 * c2 - b2 * c1) / d
              y = (a2 * c1 - a1 * c2) / d
  
          return np.array([x, y], dtype=np.float32)
function_tokens: def line_cross_point ( self , line1 , line2 ) : a1 , b1 , c1 = line1 a2 , b2 , c2 = line2 d = a1 * b2 - a2 * b1 if d == 0 : #print("line1", line1) #print("line2", line2) print ( 'Cross point does not exist' ) return np . array ( [ 0 , 0 ] , dtype = np . float32 ) else : x = ( b1 * c2 - b2 * c1 ) / d y = ( a2 * c1 - a1 * c2 ) / d return np . array ( [ x , y ] , dtype = np . float32 )