Convert a 3D vector into a vertical angle

Miscellaneous Forums/General Discussion/Convert a 3D vector into a vertical angle

Prolly not understanding this, and my math is pretty crap, but you basically want to find the pitch of the vector? Mark has this function defined in his C++ geom code as:
float pitch()const{
  return -atan2f( y,sqrtf( x*x+z*z ) );
}