🛰️航天仿真算法库 SpaceAST
0.0.1
载入中...
搜索中...
未找到
SphereShape.hpp
浏览该文件的文档.
1
20
21
#pragma once
22
23
#include "AstGlobal.h"
24
#include "
BodyShape.hpp
"
25
26
AST_NAMESPACE_BEGIN
27
29
class
AST_CORE_API
SphereShape
final:
public
BodyShape
30
{
31
public
:
32
AST_OBJECT(
SphereShape
)
33
AST_PROPERT(radius)
34
SphereShape
() =
default
;
35
SphereShape
(
double
radius);
36
37
double
majorAxis()
const override
{
return
radius_;}
38
39
void
transform
(
const
Vector3d& cartesian,
GeodeticPoint
& detic)
const override
;
40
41
void
transform
(
const
GeodeticPoint
& detic, Vector3d& cartesian)
const override
;
42
43
PROPERTIES:
44
length_d radius_{};
45
};
46
47
AST_NAMESPACE_END
BodyShape.hpp
~
ast::BodyShape
天体形状基类
定义
BodyShape.hpp:33
ast::BodyShape::transform
virtual void transform(const Vector3d &cartesian, GeodeticPoint &detic) const =0
将笛卡尔坐标(天体固连系)转换为大地坐标
ast::GeodeticPoint
大地坐标
定义
GeodeticPoint.hpp:33
ast::SphereShape
球体形状
定义
SphereShape.hpp:30
src
AstCore
Geometry
Surface
BodyShape
SphereShape.hpp
制作者
1.12.0