step/stepcore
StepCore::ChargedParticle Class Reference
[Physical bodies]
ChargedParticle with mass and charge. More...
#include <particle.h>
Inheritance diagram for StepCore::ChargedParticle:

Public Member Functions | |
| ChargedParticle (Vector2d position=Vector2d::Zero(), Vector2d velocity=Vector2d::Zero(), double mass=1, double charge=0) | |
| double | charge () const |
| ChargedParticleErrors * | chargedParticleErrors () |
| void | setCharge (double charge) |
Protected Member Functions | |
| ObjectErrors * | createObjectErrors () |
Protected Attributes | |
| double | _charge |
Detailed Description
ChargedParticle with mass and charge.
Definition at line 206 of file particle.h.
Constructor & Destructor Documentation
| StepCore::ChargedParticle::ChargedParticle | ( | Vector2d | position = Vector2d::Zero(), |
|
| Vector2d | velocity = Vector2d::Zero(), |
|||
| double | mass = 1, |
|||
| double | charge = 0 | |||
| ) | [inline, explicit] |
Constructs a charged particle.
Definition at line 212 of file particle.h.
Member Function Documentation
| double StepCore::ChargedParticle::charge | ( | ) | const [inline] |
Charge of the particle.
Definition at line 217 of file particle.h.
| ChargedParticleErrors* StepCore::ChargedParticle::chargedParticleErrors | ( | ) | [inline] |
Get (and possibly create) ChargedParticleErrors object.
Definition at line 222 of file particle.h.
| ObjectErrors* StepCore::ChargedParticle::createObjectErrors | ( | ) | [inline, protected, virtual] |
For internal use only.
Creates specific ObjectErrors-derived class (to be reimplemented in derived classes)
Reimplemented from StepCore::Particle.
Definition at line 226 of file particle.h.
| void StepCore::ChargedParticle::setCharge | ( | double | charge | ) | [inline] |
Charge of the particle.
Definition at line 219 of file particle.h.
Member Data Documentation
double StepCore::ChargedParticle::_charge [protected] |
Definition at line 228 of file particle.h.
The documentation for this class was generated from the following file:
KDE 4.4 API Reference