map algorithm question
- From: Lou Lipnickey <lou.lipnickey@xxxxxxxxx>
- Date: Mon, 06 Mar 2006 21:36:19 GMT
I am working on an application which draws maps on a screen. This is done with using sets of x,y coordinates which are made into polygons and then drawn in a paintComponent. The user now wants to add elevation (a "z" component). The question at hand is how to quickly index into a data structure to find an elevation point based on the mouse location (x,y) of the screen.
Which is the best data structure to use to look up an x,y point in order to get a z point (elevation). If the exact x,y is not present then return the closest.
I was hoping that someone might either relate how they might have done something similar or a pointer to reference. Thanks - Lou
.
- Follow-Ups:
- Re: map algorithm question
- From: Chris Uppal
- Re: map algorithm question
- From: Chris Smith
- Re: map algorithm question
- Prev by Date: Re: Calling sun.tools.javac from Applet
- Next by Date: Re: Calling sun.tools.javac from Applet
- Previous by thread: 2D graphics + JME
- Next by thread: Re: map algorithm question
- Index(es):
Relevant Pages
|