PDA

View Full Version : Position and altitude


Chipootle
08-21-2010, 12:36 AM
I am currently using worldwind-0.6.562.13630 and had a question about gov.nasa.worldwind.geom.Position.

Currently, there is a getAltitude() method that simply returns the elevation. I was wondering if an actual altitude variable would ever be implemented, that would for example, return the distance above the elevation.

I was going to subclass Position with my own altitude variable, but the getAltitude() function in the Position class is final, therefore I won't be able to override it. Of course, I can just change it to be getAlt() or something, but it is not as clean.

tag
08-24-2010, 06:18 AM
We don't have any plans to extend Position as you suggest. But there is no reason for the current accessors to be final, so we removed that constraint. The change will be in the 8/24/2010 release.