🛰️航天仿真算法库 SpaceAST
0.0.1
载入中...
搜索中...
未找到
Point.hpp
浏览该文件的文档.
1
20
21
#pragma once
22
23
#include "AstGlobal.h"
24
#include "AstUtil/Object.hpp"
25
#include "AstUtil/ObjectNamed.hpp"
26
27
AST_NAMESPACE_BEGIN
28
34
class
Frame;
35
class
CelestialBody;
36
40
class
AST_CORE_API
Point
:
public
ObjectNamed
41
{
42
public
:
43
AST_OBJECT(
Point
)
44
45
Point
() =
default
;
46
~Point
()
override
=
default
;
47
50
CelestialBody
* toBody()
const
;
51
54
virtual
Frame
*
getFrame
()
const
= 0;
55
60
virtual
errc_t
getPos
(
const
TimePoint
& tp, Vector3d& pos)
const
= 0;
61
67
virtual
errc_t
getPosVel
(
const
TimePoint
& tp, Vector3d& pos, Vector3d& vel)
const
= 0;
68
74
errc_t getPosIn(
Frame
* frame,
const
TimePoint
& tp, Vector3d& pos)
const
;
75
82
errc_t getPosVelIn(
Frame
* frame,
const
TimePoint
& tp, Vector3d& pos, Vector3d& vel)
const
;
83
84
};
85
86
using
PPoint
=
Point
*;
87
using
HPoint
=
SharedPtr<Point>
;
88
91
AST_NAMESPACE_END
ast::CelestialBody
天体
定义
CelestialBody.hpp:72
ast::Frame
坐标系抽象基类
定义
Frame.hpp:62
ast::ObjectNamed
命名对象
定义
ObjectNamed.hpp:36
ast::Point
点抽象基类
定义
Point.hpp:41
ast::Point::getFrame
virtual Frame * getFrame() const =0
获取点所在的参考坐标系
ast::Point::getPosVel
virtual errc_t getPosVel(const TimePoint &tp, Vector3d &pos, Vector3d &vel) const =0
获取点在指定时间点的位置和速度,相对于点的参考坐标系
ast::Point::getPos
virtual errc_t getPos(const TimePoint &tp, Vector3d &pos) const =0
获取点在指定时间点的位置,相对于点的参考坐标系
ast::SharedPtr
共享指针
定义
SharedPtr.hpp:33
ast::TimePoint
绝对时间点
定义
TimePoint.hpp:108
src
AstCore
Geometry
Euclid
Point.hpp
制作者
1.12.0