

Public Member Functions | |
| ClosestStarFinder (float _maxDistance) | |
| void | process (const Star &star, float distance, float appMag) |
| ~ClosestStarFinder () | |
Public Attributes | |
| float | closestDistance |
| Star * | closestStar |
| float | maxDistance |
|
|
Definition at line 250 of file universe.cpp. 00250 : 00251 maxDistance(_maxDistance), closestDistance(_maxDistance), closestStar(NULL) 00252 { 00253 }
|
|
|
Definition at line 241 of file universe.cpp. 00241 {};
|
|
||||||||||||||||
|
Definition at line 255 of file universe.cpp. References closestDistance, closestStar, and distance(). 00256 {
00257 if (distance < closestDistance)
00258 {
00259 closestStar = const_cast<Star*>(&star);
00260 closestDistance = distance;
00261 }
00262 }
|
|
|
Definition at line 246 of file universe.cpp. Referenced by process(). |
|
|
Definition at line 247 of file universe.cpp. Referenced by Universe::getNearestSolarSystem(), and process(). |
|
|
Definition at line 245 of file universe.cpp. |
1.4.1