🛰️航天仿真算法库 SpaceAST
0.0.1
载入中...
搜索中...
未找到
VectorFixed.hpp
浏览该文件的文档.
1
22
23
#pragma once
24
25
#include "AstGlobal.h"
26
#include "AstCore/Vector.hpp"
27
#include "AstCore/Axes.hpp"
28
29
AST_NAMESPACE_BEGIN
30
36
class
AST_CORE_API
VectorFixed
:
public
Vector
37
{
38
public
:
39
AST_OBJECT(
VectorFixed
)
40
AST_PROPERT(
Axes
)
41
AST_PROPERT(
Value
)
42
43
VectorFixed
() =
default
;
44
~VectorFixed
()
override
=
default
;
45
48
Axes
*
getAxes
()
const override
;
49
54
errc_t
getVector
(
const
TimePoint
& tp, Vector3d& vec)
const override
;
55
61
errc_t
getVector
(
const
TimePoint
& tp, Vector3d& vec, Vector3d& vel)
const override
;
62
63
PROPERTIES:
66
void
setAxes(
Axes
* axes);
67
70
void
setValue(
const
Vector3d& value);
71
74
const
Vector3d& getValue()
const
;
75
76
private
:
77
WeakPtr<Axes>
axes_{
nullptr
};
78
Vector3d value_{ 0, 0, 0 };
79
};
80
81
AST_NAMESPACE_END
ast::Axes
轴系抽象基类
定义
Axes.hpp:72
ast::TimePoint
绝对时间点
定义
TimePoint.hpp:108
ast::Value
值对象基类
定义
Value.hpp:43
ast::VectorFixed
固定向量类 (Fixed in Axes)
定义
VectorFixed.hpp:37
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
VectorFixed.hpp
制作者
1.12.0