1 #ifndef CLASSIC_EMField_HH
2 #define CLASSIC_EMField_HH
69 EVector(
double,
double,
double);
103 BVector(
double,
double,
double);
111 double getBx()
const;
115 double getBy()
const;
119 double getBz()
const;
148 double getEx()
const;
152 double getEy()
const;
156 double getEz()
const;
164 double getBx()
const;
168 double getBy()
const;
172 double getBz()
const;
233 virtual void scale(
double scalar) = 0;
Point3D(double x, double y, double z)
Constructor.
double getZ() const
Return coordinate.
double getX() const
Return coordinate.
double getY() const
Return coordinate.
An electric field vector.
EVector operator*(double scalar) const
Scale.
double getEz() const
Get component.
EVector(double, double, double)
Constructor.
double getEx() const
Get component.
double getEy() const
Get component.
BVector operator*(double scalar) const
Scale.
double getBz() const
Get component.
double getBy() const
Get component.
double getBx() const
Get component.
BVector(double, double, double)
Constructor.
A representation of an electromagnetic field.
double getEz() const
Get component.
double getBz() const
Get component.
double getEx() const
Get component.
double getBy() const
Get component.
BVector getB() const
Get field.
double getBx() const
Get component.
EBVectors(const EVector &E, const BVector &B)
Constructor.
EVector getE() const
Get component.
double getEy() const
Get component.
Abstract base class for electromagnetic fields.
EMField()
Default constructor.
const EMField & operator=(const EMField &right)
static const BVector ZeroBfield
The constant representing a zero magnetic field.
static const EVector ZeroEfield
The constant representing a zero electric field.
virtual BVector Bfield(const Point3D &P) const
Get field.
virtual void scale(double scalar)=0
Scale the field.
static const EBVectors ZeroEBfield
The constant representing a zero electromagnetic field.
virtual EVector Efield(const Point3D &P) const
Get field.
virtual EBVectors EBfield(const Point3D &P) const
Get field.