Converts vector between Cartesian and geographical coordinate systems
Arguments
- n
Cartesian coordinates (x, y, z) as vector
- p
Geographical coordinates (latitude, longitude) as vector
Value
Functions return a (2- or 3-dimensional) vector representing a point in the requested coordinate system.
See also
cartesian_to_spherical()
and spherical_to_cartesian()
for
conversions to spherical coordinates