🛰️航天仿真算法库 SpaceAST 0.0.1
载入中...
搜索中...
未找到
PlanetPoint.cpp 文件参考
#include "PlanetPoint.hpp"
#include "AstCore/CelestialBody.hpp"
#include "AstCore/RunTime.hpp"
#include "AstUtil/Logger.hpp"

命名空间

namespace  ast
 

宏定义

#define _AST_IMPL_PLANET_POINT(NAME)
 

详细描述



作者
axel
日期
2026-03-11

ast项目(https://github.com/space-ast/ast) 本项目基于 Apache 2.0 开源许可证分发。 您可在遵守许可证条款的前提下使用、修改和分发本软件。 许可证全文请见:

http://www.apache.org/licenses/LICENSE-2.0

重要须知: 软件按"现有状态"提供,无任何明示或暗示的担保条件。 除非法律要求或书面同意,作者与贡献者不承担任何责任。 使用本软件所产生的风险,需由您自行承担。

宏定义说明

◆ _AST_IMPL_PLANET_POINT

#define _AST_IMPL_PLANET_POINT ( NAME)
值:
errc_t a##NAME##PosInICRF(const TimePoint &tp, Vector3d &pos) \
{ \
auto body = aGet##NAME(); \
if(!body){ \
aError(#NAME " is null, please ensure it is initialized by `aInitialize()`"); \
return eErrorInvalidParam; \
} \
return body->getPosICRF(tp, pos); \
}\
errc_t a##NAME##PosVelInICRF(const TimePoint &tp, Vector3d &pos, Vector3d &vel) \
{ \
auto body = aGet##NAME(); \
if(!body){ \
aError(#NAME " is null, please ensure it is initialized by `aInitialize()`"); \
return eErrorInvalidParam; \
} \
return body->getPosVelICRF(tp, pos, vel); \
}