I would like to ask you if exist formulas to make rotation on angles in the Longitude and latitude manner ( ex. the ones used to geolocation.)
instead of using X,Y,Z coordinates:
And where to find information and explanation about this kind of matemethics..
I have found same formulas for rotation that use only angles:
Code: Select all
Angle NewLatitude = asin( Sin(Lattitude1) * sin(Angle Rotation))
Angle NewLongitude = acos( cos(Lattitude1)/cos(NewLatitude ))
i have get a look to the rotation matrix formulas as
matrix rotation on X axes :
1 0 0
0 cos(a) sin(a)
0 -sin(a) cos (a)
now this rotation give and need parameters on the 3 axis X,Y,Z
to pass through the two sisytemsthere are formulas as:
Code: Select all
Z = r* sin (latitude)
Y= r* cos(latitude)* cos(longitude)
X =r *cos(latitude)* cos(longitude)
R is thge radius from the center of the sphere
Code: Select all
r = radq(X ^2 +Y^2+ Z^2)
Long = arctan(Y/X)
altitude = arctan( Z/(radq(X^2+Y^2)) )
Thank you in advance