🛰️航天仿真算法库 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
28AST_NAMESPACE_BEGIN
29
30class AST_CORE_API VectorDisplacement : public Vector
31{
32public:
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;
57PROPERTIES:
60 void setOrigin(Point* origin);
61
64 Point* getOrigin() const;
65
68 void setDestination(Point* destination);
69
72 Point* getDestination() const;
73private:
76 Frame* getReferenceFrame() const;
77
78private:
79 WeakPtr<Point> origin_{ nullptr };
80 WeakPtr<Point> destination_{ nullptr };
81};
82
83AST_NAMESPACE_END
轴系抽象基类
定义 Axes.hpp:72
坐标系抽象基类
定义 Frame.hpp:62
点抽象基类
定义 Point.hpp:41
绝对时间点
定义 TimePoint.hpp:108
定义 VectorDisplacement.hpp:31
向量抽象基类
定义 Vector.hpp:38
virtual errc_t getVector(const TimePoint &tp, Vector3d &vec) const =0
获取向量在指定时间点的值,相对于向量的参考坐标系
virtual Axes * getAxes() const =0
获取向量所在的参考坐标系
弱引用指针
定义 WeakPtr.hpp:35