|
xoreos
0.0.5
|
A class able to sort objects by distance to a target object. More...
#include <objectcontainer.h>
Public Member Functions | |
| ObjectDistanceSort (const DragonAge::Object &target) | |
| bool | operator() (DragonAge::Object *a, DragonAge::Object *b) |
Private Member Functions | |
| float | getDistance (DragonAge::Object &a) |
Private Attributes | |
| float | xt |
| float | yt |
| float | zt |
A class able to sort objects by distance to a target object.
Definition at line 56 of file objectcontainer.h.
| Engines::DragonAge::ObjectDistanceSort::ObjectDistanceSort | ( | const DragonAge::Object & | target | ) |
Definition at line 40 of file objectcontainer.cpp.
References Engines::DragonAge::Object::getPosition(), xt, yt, and zt.

|
private |
Definition at line 48 of file objectcontainer.cpp.
References ABS(), Engines::DragonAge::Object::getPosition(), xt, yt, and zt.
Referenced by operator()().


| bool Engines::DragonAge::ObjectDistanceSort::operator() | ( | DragonAge::Object * | a, |
| DragonAge::Object * | b | ||
| ) |
Definition at line 44 of file objectcontainer.cpp.
References getDistance().

|
private |
Definition at line 63 of file objectcontainer.h.
Referenced by getDistance(), and ObjectDistanceSort().
|
private |
Definition at line 63 of file objectcontainer.h.
Referenced by getDistance(), and ObjectDistanceSort().
|
private |
Definition at line 63 of file objectcontainer.h.
Referenced by getDistance(), and ObjectDistanceSort().
1.8.14