🛰️航天仿真算法库 SpaceAST 0.0.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
67 errc_t getVectorIn(Axes *targetAxes, const TimePoint &tp, Vector3d &vec) const;
68
75 errc_t getVectorIn(Axes *targetAxes, const TimePoint &tp, Vector3d &vec, Vector3d &vel) const;
76
82 errc_t getVectorIn(Frame *targetFrame, const TimePoint &tp, Vector3d &vec) const;
83
90 errc_t getVectorIn(Frame *targetFrame, const TimePoint &tp, Vector3d &vec, Vector3d &vel) const;
91};
92
93using PVector = Vector*;
95
98AST_NAMESPACE_END
轴系抽象基类
定义 Axes.hpp:72
坐标系抽象基类
定义 Frame.hpp:62
命名对象
定义 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
获取向量在指定时间点的位置和速度,相对于向量的参考坐标系