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 Jade::Object &target) | |
bool | operator() (Jade::Object *a, Jade::Object *b) |
Private Member Functions | |
float | getDistance (Jade::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 50 of file objectcontainer.h.
Engines::Jade::ObjectDistanceSort::ObjectDistanceSort | ( | const Jade::Object & | target | ) |
Definition at line 42 of file objectcontainer.cpp.
References Engines::Jade::Object::getPosition(), xt, yt, and zt.
|
private |
Definition at line 50 of file objectcontainer.cpp.
References ABS(), Engines::Jade::Object::getPosition(), xt, yt, and zt.
Referenced by operator()().
bool Engines::Jade::ObjectDistanceSort::operator() | ( | Jade::Object * | a, |
Jade::Object * | b | ||
) |
Definition at line 46 of file objectcontainer.cpp.
References getDistance().
|
private |
Definition at line 57 of file objectcontainer.h.
Referenced by getDistance(), and ObjectDistanceSort().
|
private |
Definition at line 57 of file objectcontainer.h.
Referenced by getDistance(), and ObjectDistanceSort().
|
private |
Definition at line 57 of file objectcontainer.h.
Referenced by getDistance(), and ObjectDistanceSort().