• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

Is Point Within Circle

Status
Not open for further replies.

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,202
dx²+dy² <= r²
I do not think this is solvable... How does one evaluate dx and dy into a representable quantity to square? Or are you implying that they are the result of double differentiation? In that case you would need to intigrate twice but I do not see how this gives you the right anwser...

The correct formula
r = radius of circle
circlex = x of midpoint of the circle
circley = y of midpoint of the circle
x = x of point to check
y = y of point to check

(x - circlex)^2 + (y - circley)^2 < r^2
 
Status
Not open for further replies.
Top