🛰️航天仿真算法库 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
27
AST_NAMESPACE_BEGIN
28
37
class
AST_CORE_API
Vector
:
public
ObjectNamed
38
{
39
public
:
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
93
using
PVector
=
Vector
*;
94
using
HVector
=
SharedPtr<Vector>
;
95
98
AST_NAMESPACE_END
ast::Axes
轴系抽象基类
定义
Axes.hpp:72
ast::Frame
坐标系抽象基类
定义
Frame.hpp:62
ast::ObjectNamed
命名对象
定义
ObjectNamed.hpp:36
ast::SharedPtr< Vector >
ast::TimePoint
绝对时间点
定义
TimePoint.hpp:108
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::Vector::getVector
virtual errc_t getVector(const TimePoint &tp, Vector3d &vec, Vector3d &vel) const =0
获取向量在指定时间点的位置和速度,相对于向量的参考坐标系
src
AstCore
Geometry
Euclid
Vector.hpp
制作者
1.12.0