I'd like to figure out how optimal my solution is for calculating the rebound angle of a 2D projectile inside a rectangular space. It's a fairly generic requirement and I'm certain that it will be useful to others.
I'd like to frame the question as "Can this [description of function] be simplified/refactored?"
The sites that I think it may be semi appropriate on are:
- Mathematics
- Code Review
- Stack Overflow
- Software Engineering
I'm not heavily familiar with the scopes of any of these sites beyond the obvious assumptions.
Where might I get the best balance of both the programming and math worlds?