41 agx::Vec3( -1.9e-10, 20.79e3, -6.369e6 ) );
81 agx::Vec3 m_magneticMoment;
#define AGX_DECLARE_POINTER_TYPES(type)
#define AGXSTREAM_DECLARE_SERIALIZABLE(T)
Use this in a Serializable class to add the required methods Important: Use full namespace in the dec...
A magnetic field as produced by a magnetic dipole.
virtual agx::Vec3 calculateMagneticField(const agx::Vec3 &position) const override
Calculates and returns the magnetic field at the given position in world coordinates.
const agx::Vec3 & getCenter() const
void setMagneticMoment(const agx::Vec3 &magneticMoment)
Set the dipole's magnetic moment.
void setCenter(const agx::Vec3 ¢er)
Set the center of the dipole.
const agx::Vec3 & getMagneticMoment() const
DipoleMagneticField(const agx::Vec3 &magneticMoment=agx::Vec3(2.69e19, -7.65e22, 1.5e22), const agx::Vec3 ¢er=agx::Vec3(-1.9e-10, 20.79e3, -6.369e6))
Constructs a magnetic dipole positioned at the given center and using the specified magneticMoment.
Base type for the specification of the magnetic field in a sensor environment.
#define DOXYGEN_END_INTERNAL_BLOCK()
#define DOXYGEN_START_INTERNAL_BLOCK()
The agxSensor namespace contains components to model real-time sensors connected to the physics of AG...
The agx namespace contains the dynamics/math part of the AGX Dynamics API.