I'm using NASA WorldWind to place a rectangle on the Earth ('sphere'). When I drag the rectangle on the sphere, the rectangle changes shape and size but the dimensions should be preserved.
What is needed to preserve the rectangle's original dimensions when it is dragged along the Earth/sphere?
EDIT
It looks like most of the code in use was copied from this example: http://worldwind31.arc.nasa.gov/svn/trunk/WorldWind/src/gov/nasa/worldwind/util/BasicDragger.java
The line of code in the example that confuses me the most is
double y = event.getMouseEvent().getComponent().getSize().height -
this.dragRefObjectPoint.y + dy - 1;
The resulting behavior is the 'rectangle' that is mapped to the globe changes shape and size.
I also want to point out my experience with computer graphics and NASA worldwind are limited. I'm especially rusty on linear algebra and very weak with geomtery. I'd appreciate suggestions on resources (outside of the obvious NASA WorldWind reference).