Not a lot of activity in this forum, except for all of my dumb questions.
This one is very basic. Something I should probably already know the answer to. I'm wondering if it is possible to add two squared values together in a way that produces its squared result, or if there is any way to modify the inputs of an operation to produce the desired (squared) result.
For example 3 + 3 = 6, but 3*3 + *3*3 != 6*6.
If I have two squared distances, is there a clever way to combine these into the sum of their roots or the sum of their squares without using sqrt?
The reason I'm wanting to do this is to compare two squared distances while adding a radius to one of them. Is there any way to do this without finding the roots first?
if( dist_sq < len_sq + RADIUS_SQ ) // won't work - cannot extend either side by radius without sqrt?
Thanks for any advice