|
🛰️航天仿真算法库 SpaceAST 0.0.1
|
#include <CylindricalEclipseCalculator.hpp>
类 ast::CylindricalEclipseCalculator 继承关系图:Public 成员函数 | |
| double | getLightingRatio (const TimePoint &time, const Vector3d &position, Frame *frame) override |
Public 成员函数 继承自 ast::EclipseCalculator | |
| EclipseCalculator (CelestialBody *lightSource) | |
| CelestialBody * | lightSource () const |
| void | setLightSource (CelestialBody *lightSource) |
| void | setOccultingBodies (const std::vector< HCelestialBody > &occultingBodies) |
| void | addOccultingBody (HCelestialBody occultingBody) |
额外继承的成员函数 | |
Protected 属性 继承自 ast::EclipseCalculator | |
| HCelestialBody | lightSource_ {nullptr} |
| std::vector< HCelestialBody > | occultingBodies_ |
圆柱阴影模型光照计算器
使用圆柱阴影模型计算光照强度。该模型假定光源为平行光(光源无穷远), 遮挡体在光源反方向投射出一个圆柱形阴影。 当观测者位于阴影圆柱内时,返回全阴影(0); 否则返回全光照(1)。 该模型没有半影区,结果为二值(0或1)。
|
overridevirtual |
计算光照强度
| time | 时间点 |
| position | 观测者位置(相对于 frame 坐标系) |
| frame | 观测者所在参考系 |