ChirpSim
 All Classes Namespaces Files Functions Variables Typedefs Friends Macros
Functions
mathutility.cpp File Reference
#include "mathutility.h"
Include dependency graph for mathutility.cpp:

Functions

void b2Vec2ToQPointF (b2Vec2 *points, size_t num_points, QPointF *result)
 Converts an array of b2Vec2 into an array of QPointF. More...
 
void QPointFTob2Vec2 (QList< QPointF > points, b2Vec2 *result)
 Converts a list of QPointF into an array of b2Vec2. More...
 

Function Documentation

void b2Vec2ToQPointF ( b2Vec2 *  points,
size_t  num_points,
QPointF *  result 
)

Converts an array of b2Vec2 into an array of QPointF.

Parameters
pointsArray of b2Vec2 to convert.
num_pointsNumber of points in the array.
resultArray to store the result in.
Note
Assumes that result is an array equal or larger than the points array.

Referenced by genericPaintFixture().

Here is the caller graph for this function:

void QPointFTob2Vec2 ( QList< QPointF >  points,
b2Vec2 *  result 
)

Converts a list of QPointF into an array of b2Vec2.

Parameters
pointsSource list to convert.
resultArray to store the result in.
Note
Assumes that result is an array equal or larger than the points array.

Referenced by PushableObject::PushableObject(), and Wall::Wall().

Here is the caller graph for this function: