GEAR  1.9.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Friends Pages
Vector3D.cc
1 #include "gearimpl/Vector3D.h"
2 //#include <iostream>
3 
4 namespace gear{
5 
6 
7 std::ostream & operator << (std::ostream & os, const Vector3D &v){
8 
9  os << " ( " << v[0]
10  << ", " << v[1]
11  << ", " << v[2]
12 // os << " ( " << v.x()
13 // << ", " << v.y()
14 // << ", " << v.z()
15  << " ) - [ phi: " << v.phi()
16  << " , rho: " << v.rho() << " ] "
17  << " [ theta: " << v.theta()
18  << " , r: " << v.r() << " ] "
19  << std::endl ;
20 
21  return os ;
22 }
23 
24 }
double theta() const
Polar angle - spherical.
Definition: Vector3D.h:132
Simple three dimensional vector providing the components for cartesian, cylindrical and spherical coo...
Definition: Vector3D.h:18
double rho() const
Transversal component - cylindrical &#39;r&#39;.
Definition: Vector3D.h:101
double phi() const
Azimuthal angle - cylindrical and spherical.
Definition: Vector3D.h:95
double r() const
Spherical r/magnitude.
Definition: Vector3D.h:119