🛰️航天仿真算法库 SpaceAST
0.0.1
载入中...
搜索中...
未找到
VectorFixedAtEpoch.hpp
浏览该文件的文档.
1
22
23
#pragma once
24
25
#include "AstGlobal.h"
26
#include "AstCore/Vector.hpp"
27
#include "AstCore/Axes.hpp"
28
#include "AstCore/TimePoint.hpp"
29
30
AST_NAMESPACE_BEGIN
31
39
class
AST_CORE_API
VectorFixedAtEpoch
:
public
Vector
40
{
41
public
:
42
AST_OBJECT(
VectorFixedAtEpoch
)
43
AST_PROPERT(SourceVector)
44
AST_PROPERT(
Axes
)
45
AST_PROPERT(Epoch)
46
47
VectorFixedAtEpoch
() =
default
;
48
~VectorFixedAtEpoch
()
override
=
default
;
49
52
Axes
*
getAxes
()
const override
;
53
58
errc_t
getVector
(
const
TimePoint
& tp, Vector3d& vec)
const override
;
59
65
errc_t
getVector
(
const
TimePoint
& tp, Vector3d& vec, Vector3d& vel)
const override
;
66
67
PROPERTIES:
70
void
setSourceVector(
Vector
* vec);
71
74
Vector
* getSourceVector()
const
;
75
78
void
setAxes(
Axes
* axes);
79
82
void
setEpoch(
const
TimePoint
& epoch);
83
86
const
TimePoint
& getEpoch()
const
;
87
88
private
:
89
HVector
sourceVector_{
nullptr
};
90
WeakPtr<Axes>
referenceAxes_{
nullptr
};
91
TimePoint
epoch_{};
92
};
93
AST_NAMESPACE_END
ast::Axes
轴系抽象基类
定义
Axes.hpp:72
ast::SharedPtr< Vector >
ast::TimePoint
绝对时间点
定义
TimePoint.hpp:108
ast::VectorFixedAtEpoch
历元固定向量类 (Fixed at Epoch)
定义
VectorFixedAtEpoch.hpp:40
ast::Vector
向量抽象基类
定义
Vector.hpp:38
ast::Vector::getVector
virtual errc_t getVector(const TimePoint &tp, Vector3d &vec) const =0
获取向量在指定时间点的值,相对于向量的参考坐标系
ast::Vector::getAxes
virtual Axes * getAxes() const =0
获取向量所在的参考坐标系
ast::WeakPtr
弱引用指针
定义
WeakPtr.hpp:35
src
AstCore
Coordinate
Vector
VectorFixedAtEpoch.hpp
制作者
1.12.0