diff options
Diffstat (limited to 'graphics/epix/doc/my_code.cc')
-rw-r--r-- | graphics/epix/doc/my_code.cc | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/graphics/epix/doc/my_code.cc b/graphics/epix/doc/my_code.cc new file mode 100644 index 0000000000..b7365fa63c --- /dev/null +++ b/graphics/epix/doc/my_code.cc @@ -0,0 +1,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 |