How Visualise line trace

Hello. How Visualise line trace like angry birds or others 2d mobile android games? (when you try aiming something). And How calculate angle when impacting in 2d space?
Thanks