|
|
|||
File indexing completed on 2026-06-02 08:48:23
0001 #ifndef VECTOR_4D_H 0002 #define VECTOR_4D_H 0003 0004 /** 0005 * @file Vector4D.h 0006 * @author Bryan BERTHOU (SPhN / CEA Saclay) 0007 * @date 27 November 2014 0008 * @version 1.0 0009 */ 0010 0011 #include "Vector3D.h" 0012 0013 //TODO mathematique function add, sub, ... 0014 0015 namespace NumA { 0016 0017 /** 0018 * @class Vector4D 0019 * 0020 * Object representing a four-vector. 0021 */ 0022 class Vector4D: public Vector3D { 0023 public: 0024 /** 0025 * Default constructor. 0026 */ 0027 Vector4D(); 0028 /** 0029 * Constructor. 0030 * @param x x-coordinate. 0031 * @param y y-coordinate. 0032 * @param z z-coordinate. 0033 * @param e Energy/Time component. 0034 */ 0035 Vector4D(double x, double y, double z, double e); 0036 /** 0037 * Default destructor. 0038 */ 0039 ~Vector4D(); 0040 0041 // ##### GETTERS & SETTERS ##### 0042 0043 double getE() const; ///< Energy/Time component. 0044 void setE(double e); ///< Energy/Time component. 0045 0046 private: 0047 double m_e; ///< Energy/Time component. 0048 }; 0049 0050 } /* namespace NumA */ 0051 0052 #endif /* VECTOR_4D_H */
| [ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
|
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
|