#include <celengine/staroctree.h>Include dependency graph for staroctree.cpp:

Go to the source code of this file.
Functions | |
| float | starAbsoluteMagnitudeDecayFunction (const float excludingFactor) |
| bool | starAbsoluteMagnitudePredicate (const Star &star, const float absMag) |
| bool | starOrbitStraddlesNodesPredicate (const Point3f &cellCenterPos, const Star &star, const float absMag) |
|
|
Definition at line 43 of file staroctree.cpp. References astro::lumToAbsMag(). 00044 {
00045 return astro::lumToAbsMag(astro::absMagToLum(excludingFactor) / 4.0f);
00046 }
|
|
||||||||||||
|
Definition at line 22 of file staroctree.cpp. 00023 {
00024 return star.getAbsoluteMagnitude() <= absMag;
00025 }
|
|
||||||||||||||||
|
Definition at line 28 of file staroctree.cpp. References abs(), Point3< T >::x, Point3< T >::y, and Point3< T >::z. 00029 {
00030 //checks if this star's orbit straddles child nodes
00031 float orbitalRadius = star.getOrbitalRadius();
00032 if (orbitalRadius == 0.0f)
00033 return false;
00034
00035 Point3f starPos = star.getPosition();
00036
00037 return abs(starPos.x - cellCenterPos.x) < orbitalRadius ||
00038 abs(starPos.y - cellCenterPos.y) < orbitalRadius ||
00039 abs(starPos.z - cellCenterPos.z) < orbitalRadius;
00040 }
|
1.4.1