32 {
x = xx;
y = yy;
z = zz; }
48 {
Ex = Exx;
Ey = Eyy;
Ez = Ezz; }
71 {
Bx = Bxx;
By = Byy;
Bz = Bzz; }
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.
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.