A resultant approach to detect intersecting curves