HungSquirrel
December 3rd, 2004, 11:33 AM
Sorry for the vague title, I wasn't sure how to word this in so few characters! This pertains to Java, but if you're a non-Java person, pseudocode, etc. would really help me out.
The origin for a Java Graphics area is the top-left corner. The data I am given to plot on the Graphics area (northwestern hemisphere latitude and longitude coordinates) have a bottom-right origin (for example, see this map (http://www.kabb.com/weather/hurricane/Hurricane.gif)).
Is there any way somebody could nudge me in the right direction on writing a method that will take the data I am given and "switch" it to Java's coordinate system?
It doesn't have to be exact, it just has to be close.
The origin for a Java Graphics area is the top-left corner. The data I am given to plot on the Graphics area (northwestern hemisphere latitude and longitude coordinates) have a bottom-right origin (for example, see this map (http://www.kabb.com/weather/hurricane/Hurricane.gif)).
Is there any way somebody could nudge me in the right direction on writing a method that will take the data I am given and "switch" it to Java's coordinate system?
It doesn't have to be exact, it just has to be close.