step/stepcore
StepCore::GasParticle Class Reference
#include <gas.h>
Inheritance diagram for StepCore::GasParticle:
Public Member Functions | |
GasParticle (Vector2d position=Vector2d::Zero(), Vector2d velocity=Vector2d::Zero(), double mass=1) | |
Public Member Functions inherited from StepCore::Particle | |
Particle (Vector2d position=Vector2d::Zero(), Vector2d velocity=Vector2d::Zero(), double mass=1) | |
Vector2d | acceleration () const |
void | addForce (const double *force, const double *forceVariance) |
void | applyForce (const Vector2d &force) |
const Vector2d & | force () const |
void | getAccelerations (double *acceleration, double *accelerationVariance) |
void | getInverseMass (VectorXd *inverseMass, DynSparseRowMatrix *variance, int offset) |
void | getVariables (double *position, double *velocity, double *positionVariance, double *velocityVariance) |
double | kineticEnergy () const |
double | mass () const |
Vector2d | momentum () const |
ParticleErrors * | particleErrors () |
const Vector2d & | position () const |
void | resetForce (bool resetVariance) |
void | setForce (const Vector2d &force) |
void | setKineticEnergy (double kineticEnergy) |
void | setMass (double mass) |
void | setMomentum (const Vector2d &momentum) |
void | setPosition (const Vector2d &position) |
void | setVariables (const double *position, const double *velocity, const double *positionVariance, const double *velocityVariance) |
void | setVelocity (const Vector2d &velocity) |
int | variablesCount () |
const Vector2d & | velocity () const |
Public Member Functions inherited from StepCore::Item | |
Item (const QString &name=QString()) | |
Item (const Item &item) | |
virtual | ~Item () |
Color | color () const |
void | deleteObjectErrors () |
ItemGroup * | group () const |
ObjectErrors * | objectErrors () |
Item & | operator= (const Item &item) |
void | setColor (Color color) |
virtual void | setGroup (ItemGroup *group) |
virtual void | setWorld (World *world) |
ObjectErrors * | tryGetObjectErrors () const |
World * | world () const |
virtual void | worldItemRemoved (Item *item STEPCORE_UNUSED) |
Public Member Functions inherited from StepCore::Object | |
Object (const QString &name=QString()) | |
virtual | ~Object () |
const QString & | name () const |
void | setName (const QString &name) |
Public Member Functions inherited from StepCore::Body | |
Body () | |
virtual | ~Body () |
int | variablesOffset () const |
Additional Inherited Members | |
Public Types inherited from StepCore::Particle | |
enum | { PositionOffset = 0 } |
Protected Member Functions inherited from StepCore::Particle | |
ObjectErrors * | createObjectErrors () |
Protected Attributes inherited from StepCore::Particle | |
Vector2d | _force |
double | _mass |
Vector2d | _position |
Vector2d | _velocity |
Protected Attributes inherited from StepCore::Object | |
QString | _name |
Detailed Description
Constructor & Destructor Documentation
|
inlineexplicit |
Constructs a GasParticle.
The documentation for this class was generated from the following file:
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:16:43 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:16:43 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.