|
VoltAir
|
Namespace containing frequently used static helper functions related to Box2D. More...
Functions | |
| static float | dotProduct (const b2Vec2 &v1, const b2Vec2 &v2) |
| Returns the computed inner product between two Box2D vectors. More... | |
| static QPointF | toQPointF (const b2Vec2 &vec) |
Returns a b2Vec2 converted to a QPointF. More... | |
| static b2Vec2 | toB2Vec2 (const QPointF &vec) |
Returns a QPointF converted to a b2Vec2. More... | |
| static QRectF | toQRectF (const b2AABB &aabb) |
Returns a b2AABB converted to a QRectF. More... | |
| static b2AABB | toB2AABB (const QRectF &rect) |
Returns a QRectF converted to a b2AABB. More... | |
| static QColor | toQColor (const b2ParticleColor &color) |
Returns a b2ParticleColor converted to a QColor. More... | |
| static b2ParticleColor | toB2ParticleColor (const QColor &color) |
Returns a QColor converted to a b2ParticleColor. More... | |
Namespace containing frequently used static helper functions related to Box2D.
|
inlinestatic |
Returns the computed inner product between two Box2D vectors.
| v1 | First vector for the inner product calculation |
| v2 | Second vector for the inner product calculation |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
Returns a b2ParticleColor converted to a QColor.
| color | b2ParticleColor to convert |
|
inlinestatic |
Returns a b2Vec2 converted to a QPointF.
| vec | b2Vec2 to convert |