🛰️航天仿真算法库 SpaceAST 0.0.1
载入中...
搜索中...
未找到
Point.hpp
浏览该文件的文档.
1
20
21#pragma once
22
23#include "AstGlobal.h"
24#include "AstUtil/Object.hpp"
25
26AST_NAMESPACE_BEGIN
27
33class Frame;
34class CelestialBody;
35
36class AST_CORE_API Point: public Object
37{
38public:
39 Point() = default;
40 ~Point() override = default;
41
44 CelestialBody* toBody() const;
45
48 virtual Frame* getFrame() const = 0;
49
54 virtual errc_t getPos(const TimePoint& tp, Vector3d& pos) const = 0;
55
61 virtual errc_t getPosVel(const TimePoint& tp, Vector3d& pos, Vector3d& vel) const = 0;
62
68 errc_t getPosIn(Frame* frame, const TimePoint& tp, Vector3d& pos) const;
69
76 errc_t getPosVelIn(Frame* frame, const TimePoint& tp, Vector3d& pos, Vector3d& vel) const;
77
78};
79
82AST_NAMESPACE_END
天体
定义 CelestialBody.hpp:52
坐标系类
定义 Frame.hpp:59
对象基类,继承自该类的对象可以使用运行时类型信息相关功能,实现强弱引用计数、运行时元信息(属性访问、序列化等)等基础功能
定义 Object.hpp:81
定义 Point.hpp:37
virtual Frame * getFrame() const =0
获取点所在的参考坐标系
virtual errc_t getPosVel(const TimePoint &tp, Vector3d &pos, Vector3d &vel) const =0
获取点在指定时间点的位置和速度,相对于点的参考坐标系
virtual errc_t getPos(const TimePoint &tp, Vector3d &pos) const =0
获取点在指定时间点的位置,相对于点的参考坐标系
绝对时间点
定义 TimePoint.hpp:106