summaryrefslogtreecommitdiff
path: root/src/main/Element.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/Element.h')
-rw-r--r--src/main/Element.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/main/Element.h b/src/main/Element.h
index b49de64..754287f 100644
--- a/src/main/Element.h
+++ b/src/main/Element.h
@@ -34,12 +34,20 @@ protected:
/** Pointeur sur l'élément suivant. */
Element *next;
+ /** Intensité (constante) du champ.
+ * TODO à améliorer */
+ double fieldIntensity;
+
+ /** Direction du champ magnétique, invariant dans l'espace. */
+ Vector3D fieldDirection;
+
public:
Element();
virtual ~Element();
virtual bool isOutside(const Particle& p) const = 0;
+ /* TODO Et si la valeur de retour était un pointeur? */
virtual bool isPast(const Particle& p) const = 0;
Vector3D getEntryPosition() const {return entryPosition;}