1 #ifndef CLASSIC_BDipoleField_HH
2 #define CLASSIC_BDipoleField_HH
53 virtual double getBx()
const;
57 virtual double getBy()
const;
77 virtual void scale(
double scalar);
The field of a magnetic dipole.
BDipoleField & addField(const BDipoleField &field)
Add to field.
virtual BVector Bfield(const Point3D &P) const
Get field.
virtual double getBy() const
Get vertical component.
virtual double getBx() const
Get horizontal component.
BDipoleField()
Default constructor.
virtual void setBy(double By)
Set vertical component.
BDipoleField & subtractField(const BDipoleField &field)
Subtract from field.
virtual void scale(double scalar)
Scale the field.
virtual void setBx(double Bx)
Set horizontal component.
A homogenous magnetostatic field.