Line-line or rectangle-rectangle collisions?

Hi all,

I’m really bored with bouncing balls and so I’ve been trying to figure out how to make bouncing lines. I didn’t think it’d be too difficult but I just can’t get my head wrapped around it!

There’s lots of info on collision detection, but I can’t seem to find anything much about collision reaction with anything other than circles.

Does anybody know anything about collision reaction with line-line or rectangle-rectangle collisions?

Thanks