Non-astronomical daily solar orbit, matching the reference's manual pitch/yaw mode. 更多...
#include <SkySolarOrbit.h>
Public 成员函数 | |
| Result< std::array< double, 3 > > | direction (double hour) const |
| Evaluate a copied unit direction for an hour in [0,24). | |
静态 Public 成员函数 | |
| static Result< SkySolarOrbit > | create (double pitchDegrees, double yawDegrees) |
| Prepare a daily orbit with pitch [-90,90] and yaw [-360,360] degrees. | |
详细描述
Non-astronomical daily solar orbit, matching the reference's manual pitch/yaw mode.
Value-owned immutable configuration. Directions point towards the sun in EVEngine's Y-up coordinates, with Unreal (X,Y,Z) mapped to (X,Z,Y). No clock, weather, renderer, intensity curve or persistence state is owned here. @thread Concurrent evaluation is safe; there are no callbacks or borrowed objects.
在文件 SkySolarOrbit.h 第 12 行定义.
成员函数说明
◆ create()
|
static |
Prepare a daily orbit with pitch [-90,90] and yaw [-360,360] degrees.
- 参数
-
pitchDegrees Tilt from an overhead noon sun; reference default is 30. yawDegrees Rotation about the vertical axis; reference default is zero.
- 返回
- Owned orbit, or InvalidArgument for nonfinite/out-of-range input.
在文件 SkySolarOrbit.cpp 第 14 行定义.
被这些函数引用 eve::daynight::SkyProfile::decode() , 以及 eve::daynight::SkyRuntime::prepare().
◆ direction()
| Result< std::array< double, 3 > > eve::daynight::SkySolarOrbit::direction | ( | double | hour | ) | const |
Evaluate a copied unit direction for an hour in [0,24).
- 返回
- Direction, or InvalidArgument; the orbit remains unchanged.
在文件 SkySolarOrbit.cpp 第 22 行定义.
该类的文档由以下文件生成:
- src/modules/daynight/sky/SkySolarOrbit.h
- src/modules/daynight/sky/SkySolarOrbit.cpp