|
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 Witcher::Object &target) | |
| bool | operator() (Witcher::Object *a, Witcher::Object *b) |
Private Member Functions | |
| float | getDistance (Witcher::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 52 of file objectcontainer.h.
| Engines::Witcher::ObjectDistanceSort::ObjectDistanceSort | ( | const Witcher::Object & | target | ) |
Definition at line 43 of file objectcontainer.cpp.
References Engines::Witcher::Object::getPosition(), xt, yt, and zt.

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


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

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