🛰️航天仿真算法库 SpaceAST
0.0.1
载入中...
搜索中...
未找到
PointRoot.hpp
浏览该文件的文档.
1
20
21
#pragma once
22
23
#include "AstGlobal.h"
24
#include "AstCore/Point.hpp"
25
26
AST_NAMESPACE_BEGIN
27
34
class
AST_CORE_API
PointRoot
:
public
Point
35
{
36
public
:
37
PointRoot
() =
default
;
38
~PointRoot
() =
default
;
39
static
Point
* Instance();
40
41
Frame
*
getFrame
()
const override
;
42
errc_t
getPos
(
const
TimePoint
& tp, Vector3d& pos)
const override
;
43
errc_t
getPosVel
(
const
TimePoint
& tp, Vector3d& pos, Vector3d& vel)
const override
;
44
};
45
46
47
A_ALWAYS_INLINE
Point
* aPointRoot()
48
{
49
return
PointRoot::Instance();
50
}
51
54
AST_NAMESPACE_END
ast::Frame
坐标系类
定义
Frame.hpp:60
ast::PointRoot
定义
PointRoot.hpp:35
ast::Point
定义
Point.hpp:38
ast::Point::getFrame
virtual Frame * getFrame() const =0
获取点所在的参考坐标系
ast::Point::getPosVel
virtual errc_t getPosVel(const TimePoint &tp, Vector3d &pos, Vector3d &vel) const =0
获取点在指定时间点的位置和速度,相对于点的参考坐标系
ast::Point::getPos
virtual errc_t getPos(const TimePoint &tp, Vector3d &pos) const =0
获取点在指定时间点的位置,相对于点的参考坐标系
ast::TimePoint
绝对时间点
定义
TimePoint.hpp:106
src
AstCore
Coordinate
Point
PointRoot.hpp
制作者
1.12.0