By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,949 Members | 904 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,949 IT Pros & Developers. It's quick & easy.

conversion of longitude/latitude into cartesian coordinates using js function

P: 12
hey all,
I am working on a project in advanced java using netbeans in which i need to calculate the latitude and longitude of an airport into cartesian coordinates. i have no idea to that, well math scares me. any idea how to do the conversion? can that conversion code be converted into a javascript function?
further i need an advise too. how should i calculate coordinates of two airplanes when they are flying so that i can restrict them from colliding each other?
any help will be really appreciated. thanks in advance :)
Aug 30 '13 #1
Share this Question
Share on Google+
3 Replies


Dormilich
Expert Mod 5K+
P: 8,639
I am working on a project in advanced java using netbeans in which i need to calculate the latitude and longitude of an airport into cartesian coordinates.
note: Java =/= JavaScript.

second, for the conversion you need to know a little bit more:
- where is the point-of-origin of the cartesian coordinate system?
- you also need the distance from the point-of-origin in the polar coordinate system (lattitude and longitude alone do not define a point, the define a line)

ideas for the conversion you will find in Wikipedia.

how should i calculate coordinates of two airplanes when they are flying so that i can restrict them from colliding each other?
vectorial Maths.
Aug 30 '13 #2

P: 12
Thanks dormilich.
The refrence is the earth with respect to which i am doing all calculations. The altitude is measured from sea level
Aug 30 '13 #3

Dormilich
Expert Mod 5K+
P: 8,639
The refrence is the earth
Earth is a roughly spherical body of ~10Ļ≤ km≥, thatís just a little bit too big for a point-of-origin.


The altitude is measured from sea level
as long as you know the altitude (for any object (including airports) you want to do the conversion), thereís no problem.
Aug 30 '13 #4

Post your reply

Sign in to post your reply or Sign up for a free account.