🛰️航天仿真算法库 SpaceAST
0.0.1
载入中...
搜索中...
未找到
VectorDisplacement.hpp
浏览该文件的文档.
1
21
22
#pragma once
23
24
#include "AstGlobal.h"
25
#include "AstCore/Vector.hpp"
26
#include "AstCore/Point.hpp"
27
28
AST_NAMESPACE_BEGIN
29
30
class
AST_CORE_API
VectorDisplacement
:
public
Vector
31
{
32
public
:
33
AST_OBJECT(
VectorDisplacement
)
34
AST_PROPERT(Origin)
35
AST_PROPERT(Destination)
36
VectorDisplacement
() =
default
;
37
~VectorDisplacement
()
override
=
default
;
38
39
40
43
Axes
*
getAxes
()
const override
;
44
49
errc_t
getVector
(
const
TimePoint
& tp, Vector3d& vec)
const override
;
50
56
errc_t
getVector
(
const
TimePoint
& tp, Vector3d& vec, Vector3d& vel)
const override
;
57
PROPERTIES:
60
void
setOrigin(
Point
* origin);
61
64
Point
* getOrigin()
const
;
65
68
void
setDestination(
Point
* destination);
69
72
Point
* getDestination()
const
;
73
private
:
76
Frame
* getReferenceFrame()
const
;
77
78
private
:
79
WeakPtr<Point>
origin_{
nullptr
};
80
WeakPtr<Point>
destination_{
nullptr
};
81
};
82
83
AST_NAMESPACE_END
ast::Axes
轴系抽象基类
定义
Axes.hpp:72
ast::Frame
坐标系抽象基类
定义
Frame.hpp:62
ast::Point
点抽象基类
定义
Point.hpp:41
ast::TimePoint
绝对时间点
定义
TimePoint.hpp:108
ast::VectorDisplacement
定义
VectorDisplacement.hpp:31
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
VectorDisplacement.hpp
制作者
1.12.0