<< CL_gm_locSolTime DEPRECATED CL_gm_stationElevation >>

CelestLab >> DEPRECATED > CL_gm_sphericDist

CL_gm_sphericDist

Angle (angular distance) between 2 directions - DEPRECATED

Calling Sequence

[ang] = CL_gm_sphericDist(p1,p2)

Description

Parameters

p1:

First direction in spherical coordinates: [longitude;latitude] [rad] (2xN)

p2:

Second direction in spherical coordinates: [longitude;latitude] [rad] (2xN)

ang:

Angle between p1 and p2 [rad] (1xN)

Authors

Bibliography

See also

Examples

// Spherical distance between Toulouse (43deg 36' 19"N, 1deg 26' 34"E)
// and Barcelona (41deg 24' 7"N, 2deg 10' 17"E)
Toulouse = [43 + 36/60 + 19/3600; 1 + 26/60 + 34/3600] * %pi/180;
Barcelona = [41 + 24/60 + 7/3600; 2 + 10/60 + 17/3600] * %pi/180;
ang = CL_gm_sphericDist(Toulouse, Barcelona)

Report an issue
<< CL_gm_locSolTime DEPRECATED CL_gm_stationElevation >>