Version: SMASH-3.1
threevector.h File Reference
#include <array>
#include <cmath>
#include <ostream>
#include "constants.h"

Go to the source code of this file.

Classes

class  smash::ThreeVector
 The ThreeVector class represents a physical three-vector \( \mathbf{x} = (x_1,x_2,x_3)\) with the components \( x_1,x_2,x_3 \). More...
 

Namespaces

 smash
 

Functions

std::ostream & smash::operator<< (std::ostream &, const ThreeVector &)
 Writes the three components of the vector to the output stream. More...
 
ThreeVector smash::operator+ (ThreeVector a, const ThreeVector &b)
 
ThreeVector smash::operator- (ThreeVector a, const ThreeVector &b)
 
ThreeVector smash::operator* (ThreeVector a, const double &b)
 multiply a three-vector by constant factor: \( b\cdot\mathbf{a} \). More...
 
ThreeVector smash::operator* (const double &a, ThreeVector b)
 multiply a three-vector by constant factor: \( a\cdot\mathbf{b} \). More...
 
double smash::operator* (ThreeVector a, const ThreeVector &b)
 
ThreeVector smash::operator/ (ThreeVector a, const double &b)
 divide a three-vector by constant factor: \(\mathbf{a}/b\). More...