summaryrefslogtreecommitdiff
path: root/graphics/epix/doc/my_code.cc
blob: b7365fa63c5e39148e413440bf5bbfa9798c31e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* my_code.cc */
#include "my_code.h"
using namespace ePiX;

namespace Mine {
  double lorentz_norm(P arg)
  {
    double x=arg.x1(), y=arg.x2(), z=arg.x3(); // extract coords
    return -x*x + y*y + z*z;
  }
  bool spacelike(P arg)
  {
    return (lorentz_norm(arg) > 0);
  }
} // end of namespace