View Full Version : Can airspace tell if a location is inside of it?
robotfire
04-01-2011, 08:11 PM
Is there any way for me to take an airspace and say, "Does this airspace contain this lat/lon/alt point?"
BrunoSpy
04-03-2011, 11:22 AM
Take a look at :
http://code.google.com/p/videso3d/source/browse/trunk/src/fr/crnan/videso3d/graphics/VPolygon.java
robotfire
04-04-2011, 08:16 PM
Awesome! Also, is it possible to tell if an airspace is collides with the ground? I'd imagine the difficulty here would be getting the elevations of all possible ground points in an area, and then you could do something similar to your post. Is there an easy way already built in, perhaps?
nlneilson
04-04-2011, 10:24 PM
You could look at /render/ContourLine.java from 0.6.738 or earlier, the later has problems.
Set the elevation to the lower altitude/elevation of your airspace.
That will display any terrain in your airspace.
If you want a bool true/false I don't know if that is implemented in the SDK.
robotfire
04-05-2011, 01:10 PM
Cool, thanks again!
vBulletin® v3.7.1, Copyright ©2000-2013, Jelsoft Enterprises Ltd.