![]() |
I have a quiestion about a distance
how can i calculate the distabce between the "center of mass" of the green light, and it's corners?
|
Re: I have a quiestion about a distance
simple get the coordinate for mid (x,y) then get coordinates for corner(x1,y1)
now use the distance formual -- sqareroot( (x-x1)^2 + (y-y1)^2) I think :D |
Re: I have a quiestion about a distance
Quote:
|
Re: I have a quiestion about a distance
O yea I forgot about this how foolish of me. Hmm Well if the twoo or more target are of same area than you can use the pixels but the same problem of distance occurs. Maybe if you can caculate the distance to one off the target or use the VW function to get 1 target you could do it. Using VW gives can *theoretically* get you down to one target I belive. Am I right or dead wrong?
|
| All times are GMT -5. The time now is 04:48. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi