step/stepcore
StepCore::Box Class Reference
#include <rigidbody.h>
Inheritance diagram for StepCore::Box:
Public Member Functions | |
Box (Vector2d position=Vector2d::Zero(), double angle=0, Vector2d velocity=Vector2d::Zero(), double angularVelocity=0, double mass=1, double inertia=1, Vector2d size=Vector2d(1, 1)) | |
void | setSize (const Vector2d &size) |
Vector2d | size () const |
Public Member Functions inherited from StepCore::BasePolygon | |
BasePolygon (Vector2d position=Vector2d::Zero(), double angle=0, Vector2d velocity=Vector2d::Zero(), double angularVelocity=0, double mass=1, double inertia=1) | |
const Vector2dList & | vertexes () const |
Public Member Functions inherited from StepCore::RigidBody | |
RigidBody (Vector2d position=Vector2d::Zero(), double angle=0, Vector2d velocity=Vector2d::Zero(), double angularVelocity=0, double mass=1, double inertia=1) | |
Vector2d | acceleration () const |
void | addForce (const double *force, const double *forceVariance) |
double | angle () const |
double | angularAcceleration () const |
double | angularMomentum () const |
double | angularVelocity () const |
void | applyForce (const Vector2d &force, const Vector2d &position) |
void | applyTorque (double torque) |
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 | inertia () const |
double | kineticEnergy () const |
double | mass () const |
Vector2d | momentum () const |
Vector2d | pointLocalToWorld (const Vector2d &p) const |
Vector2d | pointWorldToLocal (const Vector2d &p) const |
const Vector2d & | position () const |
void | resetForce (bool resetVariance) |
RigidBodyErrors * | rigidBodyErrors () |
void | setAngle (double angle) |
void | setAngularMomentum (double angularMomentum) |
void | setAngularVelocity (double angularVelocity) |
void | setForce (const Vector2d &force) |
void | setInertia (double inertia) |
void | setKineticEnergy (double kineticEnergy) |
void | setMass (double mass) |
void | setMomentum (const Vector2d &momentum) |
void | setPosition (const Vector2d &position) |
void | setTorque (double torque) |
void | setVariables (const double *position, const double *velocity, const double *positionVariance, const double *velocityVariance) |
void | setVelocity (const Vector2d &velocity) |
double | torque () const |
int | variablesCount () |
Vector2d | vectorLocalToWorld (const Vector2d &v) const |
Vector2d | vectorWorldToLocal (const Vector2d &v) const |
const Vector2d & | velocity () const |
Vector2d | velocityLocal (const Vector2d &localPoint) const |
Vector2d | velocityWorld (const Vector2d &worldPoint) 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::RigidBody | |
enum | { PositionOffset = 0, AngleOffset = 2 } |
Protected Member Functions inherited from StepCore::RigidBody | |
ObjectErrors * | createObjectErrors () |
Protected Attributes inherited from StepCore::BasePolygon | |
Vector2dList | _vertexes |
Protected Attributes inherited from StepCore::RigidBody | |
double | _angle |
double | _angularVelocity |
Vector2d | _force |
double | _inertia |
double | _mass |
Vector2d | _position |
double | _torque |
Vector2d | _velocity |
Protected Attributes inherited from StepCore::Object | |
QString | _name |
Detailed Description
Definition at line 325 of file rigidbody.h.
Constructor & Destructor Documentation
|
explicit |
Constructs Box.
Definition at line 341 of file rigidbody.cc.
Member Function Documentation
void StepCore::Box::setSize | ( | const Vector2d & | size | ) |
Set box size.
Definition at line 350 of file rigidbody.cc.
|
inline |
Get box size.
Definition at line 335 of file rigidbody.h.
The documentation for this class was generated from the following files:
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.