32 {
x = xx;
y = yy;
z = zz; }
48 {
Ex = Exx;
Ey = Eyy;
Ez = Ezz; }
71 {
Bx = Bxx;
By = Byy;
Bz = Bzz; }
double getBx() const
Get component.
static const EVector ZeroEfield
The constant representing a zero electric field.
const EMField & operator=(const EMField &right)
virtual EBVectors EBfield(const Point3D &P) const
Get field.
Abstract base class for electromagnetic fields.
virtual EVector Efield(const Point3D &P) const
Get field.
Point3D(double x, double y, double z)
Constructor.
BVector operator*(double scalar) const
Scale.
double getBy() const
Get component.
An electric field vector.
double getBy() const
Get component.
double getY() const
Return coordinate.
static const EBVectors ZeroEBfield
The constant representing a zero electromagnetic field.
virtual BVector Bfield(const Point3D &P) const
Get field.
EVector(double, double, double)
Constructor.
double getEz() const
Get component.
EBVectors(const EVector &E, const BVector &B)
Constructor.
double getBx() const
Get component.
double getEy() const
Get component.
double getEz() const
Get component.
EMField()
Default constructor.
static const BVector ZeroBfield
The constant representing a zero magnetic field.
EVector operator*(double scalar) const
Scale.
double getEx() const
Get component.
double getX() const
Return coordinate.
double getBz() const
Get component.
BVector(double, double, double)
Constructor.
double getEx() const
Get component.
A representation of an electromagnetic field.
double getZ() const
Return coordinate.
double getEy() const
Get component.
BVector getB() const
Get field.
EVector getE() const
Get component.
double getBz() const
Get component.