Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- C= {x= 400; y= 200; raio= 50}; -- Posição X, Posição Y, Raio do círculo C
- P= {x= 450; y= 250}; -- Ponto P
- P.raio= math.sqrt((P.x - C.x)^2 + (P.y - C.y)^2)
- print(P.raio <= C.raio) -- P está dentro da área do círculo C
Advertisement
Add Comment
Please, Sign In to add comment