ÿþ</-.-~--++-~--.-~-.-_-~-_-.-~--~--++--.-_-~-_-.---~--.--++--~-.--~--.-+-+--~--.-_-~--~--.-_++---.--~--.--.-++-~-.--.--~+~-^v
| +*+
v +$+
### ### ############# ############# ############# ############# ############# ###### +*+
### ### ### #### #### #### ### ### ######## +$+
### ### ### ### #### ### ### ### ### +*+
### ### ############ ### ############# ### ### ### ### +$+
### ### ### ### ##### #### ### ### ### ### +*+
######## ### #### ### #### ### ### ################ +$+
###### ### ##### ### #### ### ### #### #### +*+
#### ############# ############# ############## ### ### #### #### +$+
^ +*+
| [Programming and Reversing skills] +$+
| +*+
</-.-~--++-~--.-~-.-_-~-_-.-~--~--++--.-_-~-_-.---~--.--++--~-.--~--.-+-+--~--.-_-~--~--.-_++---.--~--.--.-++-~-.--.--~+~-^v
---------COORDINATES CONVERTER FOR STUDENTS version 1.0.0.0
---------PROGRAM (freeware)
---------Designed by CHU Vegetta
---------Date: 20-AUGUST-2013
This is a small program to convert coordinates from cartesian system to polar and vice versa.
There are two options. The first is about the 2-D space, where you can convert the coordinates
from cartesian to polar system and vice versa. The second option is about the 3-D space
where you can convert from cartesian system to spherical and cylindrical and so on.
--------HOW TO USE THE PROGRAM
This program is very easy to use.
1) select 2-D or 3-D
2) Select what you want to convert
3) Press the 'RUN' button and see the results.
SEE IMPORTANT NOTES BELOW FOR HOW TO INPUT THE DATA!!
--------PROGRAM FUNCTIONS
1) RUN button: Press it to execute the program and convert your data
2) CLEAR button: Clear all data
3) CONVERT button: This is a small application to convert an angle from degrees to radians and vice versa
4) INFO button: Information about the program.
--------MATH EQUATIONS
In this section we are going to present the equations of the coordinates conversion
-------
1) 2-D SPACE
a) CARTESIAN TO POLAR CONVERSION: (X,Y)-->(r,theta)
Let assume X as longitude and Y as latitude of the cartesian system. (X,Y)
Also, let assume r as radius and theta as the azimuth angle of the polar system. (r, theta)
We use the following equations to convert in polar system
r=SQRT(X^2+Y^2)
theta=ARCTAN(Y/X)
b) POLAR TO CARTESIAN CONVERSION: (r,theta)-->(X,Y)
Let assume X as longitude and Y as latitude of the cartesian system. (X,Y)
Also, let assume r as radius and theta as the azimith angle of the polar system. (r,theta)
We use the following equations to convert in cartesian system.
X=r*COS(theta)
Y=r*SIN(theta)
-------
2) 3-D SPACE
a) CARTESIAN TO CYLINDRICAL AND SPHERICAL CONVERSION: (X,Y,Z)--> (r,theta,h) and (r,theta,phi)
Let assume X as longitude, Y as latitude and Z as altitude of the cartesian system.
Let assume r as radius, theta as the azimuth angle and h as altitude of the cylindrical system.
Also, let assume r as radius, theta as the azimuth angle and phi as the polar angle of the spherical system.
-Azimuth angle (theta)--> The horizontal angle measured on the XY plane from the X axis in the counterclockwise direction.
-Polar angle also known as zenith angle or elevation (phi)--> The angle measured from the Z axis
We use the following equations to convert in cylindrical and spherical system.
i) CARTESIAN TO CYLINDRICAL: (X,Y,Z)--> (r,theta,h)
r=SQRT(X^2+Y^2)
theta=ARCTAN(Y/X)
h=Z
ii) CARTESIAN TO SPHERICAL (X,Y,Z)--> (r,theta,phi)
r=SQRT(X^2+Y^2+Z^2)
theta=ARCTAN(Y/X)
phi=ARCTAN(SQRT((X^2+Y^2)/Z))
b) SPHERICAL TO CARTESIAN AND CYLINDRICAL CONVERSION: (r,theta,phi)--> (X,Y,Z) and (r,theta,h)
Let assume X as longitude, Y as latitude and Z as altitude of the cartesian system. (X,Y,Z)
Let assume r as radius, theta as the azimuth angle and h as altitude of the cylindrical system. (r,theta,h)
Also, let assume r as radius, theta as the azimuth angle and phi as the polar angle of the spherical system. (r,theta,phi)
-Azimuth angle (theta)--> The horizontal angle measured on the XY plane from the X axis in the counterclockwise direction.
-Polar angle also known as zenith angle or elevation (phi)--> The angle measured from the Z axis
We use the following equations to convert in cylindrical and spherical system.
i) SPHERICAL TO CARTESIAN: (r,theta,phi)--> (X,Y,Z)
X=r*SIN(phi)*COS(theta)
Y=r*SIN(phi)*SIN(theta)
Z=r*COS(phi)
ii) SPHERICAL TO CYLINDRICAL: (r,theta,phi)--> (r,theta,h)
r_cylindrical=r_spherical*SIN(phi)
theta_cylindrical=theta_spherical
h=r*COS(phi)
c) CYLINDRICAL TO CARTESIAN AND SPHERICAL CONVERSION: (r,theta,h)--> (r,theta,phi) and (X,Y,Z)
Let assume X as longitude, Y as latitude and Z as altitude of the cartesian system. (X,Y,Z)
Let assume r as radius, theta as the azimuth angle and h as altitude of the cylindrical system. (r,theta,h)
Also, let assume r as radius, theta as the azimuth angle and phi as the polar angle of the spherical system. (r,theta,phi)
-Azimuth angle (theta)--> The horizontal angle measured on the XY plane from the X axis in the counterclockwise direction.
-Polar angle also known as zenith angle or elevation (phi)--> The angle measured from the Z axis
We use the following equations to convert in cartesian and spherical system.
i) CYLINDRICAL TO CARTESIAN: (r,theta,h)--> (X,Y,Z)
X=r*COS(theta)
Y=r*SIN(theta)
Z=h
ii) CYLINDRICAL TO SPHERICAL: (r,theta,h)--> (r,theta,phi)
r_spherical=SQRT(r_cylindrical^2+h^2)
theta_spherical=theta_cylindrical
phi=ARCTAN(r_cylindrical/h)
---------------------------IMPORTANT NOTES---------------------------
1) Use the dot (.) symbol for demical numbers!!
2) Give angles in degrees, not radians!!
[CONTACT]
----------------------------------------------------------------------------------------------------------------------
If you face problems contact me. e-mail e-goum@hotmail.com
Blog (my trainers)--> http://vegettadbz.blogspot.com
-->P.S. Use ''Courier New'' or ''Courier'' or ''Lucida Console'' as font to display properly the ascii logo<--