def get_intersection(cx1, cy1, cos_t1, sin_t1,<EOL>cx2, cy2, cos_t2, sin_t2):
<EOL>line1_rhs = sin_t1 * cx1 - cos_t1 * cy1<EOL>line2_rhs = sin_t2 * cx2 - cos_t2 * cy2<EOL>a, b = sin_t1, -cos_t1<EOL>c, d = sin_t2, -cos_t2<EOL>ad_bc = a*d-b*c<EOL>if ad_bc == <NUM_LIT:0.>:<EOL><INDENT>raise ValueError("<STR_LIT>")<EOL><DEDENT>a_, b_ = d, -b<EOL>c_, d_ = -c, a<EOL>a_, b_, c_, d_ = [k / ad_bc for k in [a_, b_, c_, d_]]<EOL>x = a_* line1_rhs + b_ * line2_rhs<EOL>y = c_* line1_rhs + d_ * line2_rhs<EOL>return x, y<EOL>
return a intersecting point between a line through (cx1, cy1)
    and having angle t1 and a line through (cx2, cy2) and angle t2.