| 
    Jpp
    18.2.0
    
   the software that should make you happy 
   | 
 
The Vec class is a straightforward 3-d vector, which also works in pyroot. More...
#include <Vec.hh>
  
 Public Member Functions | |
| Vec (double x_, double y_, double z_) | |
| Constructor.  More... | |
| Vec () | |
| Default constructor.  More... | |
| double | dot (const Vec &v) const | 
| Get dot product.  More... | |
| Vec | cross (const Vec r) const | 
| Get cross product.  More... | |
| Vec & | operator+= (const Vec &v) | 
| Add vector.  More... | |
| Vec & | operator-= (const Vec &v) | 
| Subtract vector.  More... | |
| Vec & | operator*= (double d) | 
| Multiply vector.  More... | |
| Vec & | operator/= (double d) | 
| Divide vector.  More... | |
| Vec | operator- () const | 
| Negate vector.  More... | |
| bool | operator== (const Vec &v) const | 
| Check equality with given vector.  More... | |
| bool | operator!= (const Vec &v) const | 
| Check in-equality with given vector.  More... | |
| Vec & | set (double xx, double yy, double zz) | 
| Set vector.  More... | |
| Vec & | set_angles (double theta, double phi) | 
| Set vector according given zenith and azimuth angles.  More... | |
| double | phi () const | 
| Get azimuth angle.  More... | |
| double | theta () const | 
| Get zenith angle.  More... | |
| double | len () const | 
| Get length.  More... | |
| double | lenxy () const | 
| Get length of (x,y) component.  More... | |
| Vec & | normalize () | 
| Normalise this vector.  More... | |
| void | print (std::ostream &out=std::cout) const | 
| Print vector.  More... | |
| const char * | __repr__ () const | 
| Get string representation of this vector.  More... | |
| Vec | __add__ (const Vec &v) const | 
| Add vector.  More... | |
| Vec | __sub__ (const Vec &v) const | 
| Subtract vector.  More... | |
| Vec | __mul__ (double d) const | 
| Multiply vector.  More... | |
| Vec | __rmul__ (double d) const | 
| Multiply vector.  More... | |
| Vec | __div__ (double d) const | 
| Divide vector.  More... | |
| Vec & | rotate_z (double ang) | 
| Rotate around z-axis with given angle.  More... | |
| Vec & | rotate_x (double ang) | 
| Rotate around x-axis with given angle.  More... | |
| Vec & | rotate_y (double ang) | 
| Rotate around y-axis with given angle.  More... | |
Public Attributes | |
| double | x | 
| double | y | 
| double | z | 
The Vec class is a straightforward 3-d vector, which also works in pyroot.
      
  | 
  inline | 
      
  | 
  inline | 
      
  | 
  inline | 
Get cross product.
| r | vector | 
      
  | 
  inline | 
Multiply vector.
| d | factor | 
      
  | 
  inline | 
      
  | 
  inline | 
      
  | 
  inline | 
Check equality with given vector.
| v | vector | 
      
  | 
  inline | 
Check in-equality with given vector.
| v | vector | 
      
  | 
  inline | 
      
  | 
  inline | 
Set vector according given zenith and azimuth angles.
| theta | zenith angle [rad] | 
| phi | azimuth angle [rad] | 
Definition at line 118 of file Vec.hh.
      
  | 
  inline | 
      
  | 
  inline | 
      
  | 
  inline | 
      
  | 
  inline | 
      
  | 
  inline | 
      
  | 
  inline | 
      
  | 
  inline | 
      
  | 
  inline | 
      
  | 
  inline | 
      
  | 
  inline | 
      
  | 
  inline | 
Rotate around z-axis with given angle.
| ang | angle [rad] | 
Definition at line 235 of file Vec.hh.
      
  | 
  inline | 
Rotate around x-axis with given angle.
| ang | angle [rad] | 
Definition at line 250 of file Vec.hh.
      
  | 
  inline | 
Rotate around y-axis with given angle.
| ang | angle [rad] | 
Definition at line 265 of file Vec.hh.
 1.8.5