Qdos
ON LINE REFERENCE
Classes - Functions - Home - Structure

template<class T1, class T2> rlp_deg_to_z<T1,T2> Function Reference

Obtains cartesian z-coordinate from coordinates expressed in terms of magnitude, latitude and longitude. Details...

#include <CoordSys.h>

Prototype


Details

rlp_deg_to_z obtains the cartesian z-coordinate from coordinates expressed in terms of magnitude, latitude, and longitude (r,(l)atitude,(p)hi), where:-

See also: rlp_to_z, rlp_deg_to_x, rlp_deg_to_y, rlp_deg_to_xyz, xyz_to_rlp, and xyz_to_rlp_deg.

Examples: test_coordrep_trans.cc


Function Documentation

template <class T1, class T2> void rlp_deg_to_z( const T1& r_in, const T1& lat_in,const T1& phi_in,T2& z_out)

Calculates z_out as:-

 z_out=r_in*sin(lat_in);

template <class T1, class T2> void rlp_deg_to_z( const T1& r_in, const T1& lat_in,const T1& phi_in, const T2& z_out)

As above, but with the exception that this version is instantiated when z_out is the result of an operation passed-by-value (e.g. the result of a Matrix<T> index operation.) In these cases, z_out acts as a handle on the actual data storage area - z_out cannot itself be modified, but the data it refers to can be.

Requirements on types

For the second const version:-


Copyright © 2000 QMW Space Plasma Group QMW Space Plasma Group Home Page
Qdos 2000