🛰️航天仿真算法库 SpaceAST 0.0.1
载入中...
搜索中...
未找到
SphereShape.hpp
浏览该文件的文档.
1
20
21#pragma once
22
23#include "AstGlobal.h"
24#include "BodyShape.hpp"
25
26AST_NAMESPACE_BEGIN
27
29class AST_CORE_API SphereShape final: public BodyShape
30{
31public:
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
43PROPERTIES:
44 length_d radius_{};
45};
46
47AST_NAMESPACE_END
天体形状基类
定义 BodyShape.hpp:33
virtual void transform(const Vector3d &cartesian, GeodeticPoint &detic) const =0
将笛卡尔坐标(天体固连系)转换为大地坐标
大地坐标
定义 GeodeticPoint.hpp:33
球体形状
定义 SphereShape.hpp:30