General case
slope_1 = ( ( given_slope + math . tan ( x ) ) / ( 1 - math . tan ( x ) * given_slope ) ) NEW_LINE slope_2 = ( ( given_slope - math . tan ( x ) ) / ( 1 + math . tan ( x ) * given_slope ) ) NEW_LINE