🛰️航天仿真算法库 SpaceAST 0.0.1
载入中...
搜索中...
未找到
Point.hpp
浏览该文件的文档.
1
20
21#pragma once
22
23#include "AstGlobal.h"
24#include "AstUtil/Object.hpp"
25#include "AstUtil/ObjectNamed.hpp"
26
27AST_NAMESPACE_BEGIN
28
34class Frame;
35class CelestialBody;
36
37class AST_CORE_API Point: public ObjectNamed
38{
39public:
40 AST_OBJECT(Point)
41
42 Point() = default;
43 ~Point() override = default;
44
47 CelestialBody* toBody() const;
48
51 virtual Frame* getFrame() const = 0;
52
57 virtual errc_t getPos(const TimePoint& tp, Vector3d& pos) const = 0;
58
64 virtual errc_t getPosVel(const TimePoint& tp, Vector3d& pos, Vector3d& vel) const = 0;
65
71 errc_t getPosIn(Frame* frame, const TimePoint& tp, Vector3d& pos) const;
72
79 errc_t getPosVelIn(Frame* frame, const TimePoint& tp, Vector3d& pos, Vector3d& vel) const;
80
81};
82
85AST_NAMESPACE_END
天体
定义 CelestialBody.hpp:52
坐标系类
定义 Frame.hpp:60
命名对象
定义 ObjectNamed.hpp:36
定义 Point.hpp:38
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