(9)

SpaceTime.h File Reference

Definition file and implementation for class SpaceTime. More...

Classes

class  SpaceTime
 Defines a space-time point. More...
 

Namespaces

 OFELI
 A namespace to group all library classes, functions, ...
 

Functions

bool operator== (const SpaceTime &a, const SpaceTime &b)
 Operator == More...
 
SpaceTime operator+ (const SpaceTime &a, const SpaceTime &b)
 Operator + More...
 
SpaceTime operator+ (const SpaceTime &a, const real_t &x)
 Operator + More...
 
SpaceTime operator- (const SpaceTime &a)
 Unary Operator - More...
 
SpaceTime operator- (const SpaceTime &a, const SpaceTime &b)
 Operator - More...
 
SpaceTime operator- (const SpaceTime &a, const real_t &x)
 Operator - More...
 
SpaceTime operator* (const real_t &a, const SpaceTime &b)
 Operator * More...
 
SpaceTime operator* (const int &a, const SpaceTime &b)
 Operator *. More...
 
SpaceTime operator* (const SpaceTime &b, const real_t &a)
 Operator / More...
 
SpaceTime operator* (const SpaceTime &b, const int &a)
 Operator * More...
 
real_t operator* (const SpaceTime &a, const SpaceTime &b)
 Operator * More...
 
SpaceTime operator/ (const SpaceTime &b, const real_t &a)
 Operator / More...
 
SpaceTime CrossProduct (const SpaceTime &lp, const SpaceTime &rp)
 Return Cross product of two vectors lp and rp
 
bool areClose (const SpaceTime &a, const SpaceTime &b, real_t toler=OFELI_TOLERANCE)
 Return true if both instances of class Point<double> are distant with less then toler More...
 
real_t SqrDistance (const SpaceTime &a, const SpaceTime &b)
 Return squared euclidean distance between points a and b More...
 
real_t Distance (const SpaceTime &a, const SpaceTime &b)
 Return euclidean distance between points a and b More...
 
bool operator< (const SpaceTime &a, const SpaceTime &b)
 Comparison operator. Returns true if all components of first vector are lower than those of second one. More...
 
std::ostream & operator<< (std::ostream &s, const SpaceTime &a)
 Output space-time point coordinates. More...
 

Detailed Description

Definition file and implementation for class SpaceTime.