[android-developers] Re: Converting screen coordinates to world coordinates?
I generally use location.distancebetween method to calculate the
distance taking my camera position as the origin.
But here my actual requirement is to fetch lattitude and longitude
values from screen coordinates.So for this i need world x,y,z values.
Again any idea about it?
On Jan 17, 6:48 pm, TreKing <treking...@gmail.com> wrote:
> On Mon, Jan 17, 2011 at 5:54 AM, prachi <prachi.tya...@wipro.com> wrote:
> > I have the screen x,y value and i need to fetch the corresponding world
> > coordinates(x,y,z) for the same.
>
> Technically speaking, there is no "corresponding" [X, Y, Z] for a given [X,
> Y]. Converted to 3D, a 2D point becomes a line with an infinite number of
> points along Z. However, you can find a particular Z given some more
> restrictions (like an origin and a distance). Google around for "3D
> projection" and "3D picking" - this is of itself not an Android-exclusive
> concept.
>
> > Ny idea how to do dis???
>
> They're spelled "any" and "this", respectively. You'll be taken far more
> seriously if you take time to proofread your posts.
>
> -------------------------------------------------------------------------------------------------
> TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
> transit tracking app for Android-powered devices
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home