I am coding a video game, but I am not so good at the math. I am hoping for some help here:
- $X, Y$ that is the center of the Circle
- $R$ that is the radius of the Circle
- $X_1, Y_1$ that may or may not be in the circle.
The idea is that I have a tower that will shoot at a bad guy when it comes in range. The bad guy has an $X_1, Y_1$ coordinate that will continually update.
I need an equation I can run to see if the bad guy is in range.