dporem Posted June 17, 2009 at 02:06 PM Report Share #273074 Posted June 17, 2009 at 02:06 PM Boas, nao sei s tou a postar no sitio correcto ou nao, mas a minha questao é a seguinte, Tenho de fazer um metodo que verifique se um ponto encontra-se ou não a uma distancia minima de outro ponto, tenho as coordenadas 2D desses pontos. Por baixo encontra-se uma imagem que tenta ilustra o problema: http://img155.imageshack.us/img155/8751/problema.jpg Desde ja mto obrigado por qualquer ajuda... Cumps, Dporem Link to comment Share on other sites More sharing options...
M6 Posted June 17, 2009 at 02:20 PM Report Share #273081 Posted June 17, 2009 at 02:20 PM Isso é a distância Euclideana, é bastante simples: http://en.wikipedia.org/wiki/Euclidean_distance 10 REM Generation 48K! 20 INPUT "URL:", A$ 30 IF A$(1 TO 4) = "HTTP" THEN PRINT "400 Bad Request": GOTO 50 40 PRINT "404 Not Found" 50 PRINT "./M6 @ Portugal a Programar." Link to comment Share on other sites More sharing options...
dporem Posted June 17, 2009 at 03:01 PM Author Report Share #273096 Posted June 17, 2009 at 03:01 PM hummm, vou tentar.... Thanks M6 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now