🛰️航天仿真算法库 SpaceAST 0.3.1
载入中...
搜索中...
未找到
Vector.hpp
浏览该文件的文档.
1
20
21#pragma once
22
23#include "AstGlobal.h"
24#include "AstMath/Vector.hpp"
25#include "AstUtil/ObjectNamed.hpp"
26
27AST_NAMESPACE_BEGIN
28
37class AST_CORE_API Vector : public ObjectNamed
38{
39public:
40 AST_OBJECT(Vector)
41
42 Vector() = default;
43 ~Vector() override = default;
44
47 virtual Axes *getAxes() const = 0;
48
53 virtual errc_t getVector(const TimePoint &tp, Vector3d &vec) const = 0;
54
60 virtual errc_t getVector(const TimePoint &tp, Vector3d &vec, Vector3d &vel) const = 0;
61
69 virtual errc_t getVector(const TimePoint &tp, Vector3d &vec, Vector3d &vel, Vector3d &acc) const;
70
76 errc_t getVectorIn(Axes *targetAxes, const TimePoint &tp, Vector3d &vec) const;
77 errc_t getVectorIn(Axes& targetAxes, const TimePoint &tp, Vector3d &vec) const;
78
85 errc_t getVectorIn(Axes *targetAxes, const TimePoint &tp, Vector3d &vec, Vector3d &vel) const;
86 errc_t getVectorIn(Axes& targetAxes, const TimePoint &tp, Vector3d &vec, Vector3d &vel) const;
87
95 errc_t getVectorIn(Axes *targetAxes, const TimePoint &tp, Vector3d &vec, Vector3d &vel, Vector3d &acc) const;
96 errc_t getVectorIn(Axes& targetAxes, const TimePoint &tp, Vector3d &vec, Vector3d &vel, Vector3d &acc) const;
97
103 errc_t getVectorIn(Frame *targetFrame, const TimePoint &tp, Vector3d &vec) const;
104 errc_t getVectorIn(Frame& targetFrame, const TimePoint &tp, Vector3d &vec) const;
105
112 errc_t getVectorIn(Frame *targetFrame, const TimePoint &tp, Vector3d &vec, Vector3d &vel) const;
113 errc_t getVectorIn(Frame& targetFrame, const TimePoint &tp, Vector3d &vec, Vector3d &vel) const;
114
122 errc_t getVectorIn(Frame *targetFrame, const TimePoint &tp, Vector3d &vec, Vector3d &vel, Vector3d &acc) const;
123 errc_t getVectorIn(Frame& targetFrame, const TimePoint &tp, Vector3d &vec, Vector3d &vel, Vector3d &acc) const;
124};
125
126
127using PVector = Vector*;
129
132AST_NAMESPACE_END
轴系抽象基类
定义 Axes.hpp:86
坐标系抽象基类
定义 Frame.hpp:74
命名对象
定义 ObjectNamed.hpp:36
绝对时间点
定义 TimePoint.hpp:108
向量抽象基类
定义 Vector.hpp:38
virtual errc_t getVector(const TimePoint &tp, Vector3d &vec) const =0
获取向量在指定时间点的值,相对于向量的参考坐标系
virtual Axes * getAxes() const =0
获取向量所在的参考坐标系
virtual errc_t getVector(const TimePoint &tp, Vector3d &vec, Vector3d &vel) const =0
获取向量在指定时间点的位置和速度,相对于向量的参考坐标系