🛰️航天仿真算法库 SpaceAST 0.0.1
载入中...
搜索中...
未找到
BodyObstruction.hpp
浏览该文件的文档.
1
20
21#pragma once
22
23#include "AstGlobal.h"
24#include "AstCore/BodyShape.hpp"
25
26AST_NAMESPACE_BEGIN
27
33AST_CORE_API double aLineOfSightClearance(
34 const Vector3d& observerPos,
35 const Vector3d& targetPos,
36 const BodyShape* bodyShape);
37
44 const Vector3d& observerPos,
45 const Vector3d& targetPos,
46 const BodyShape* bodyShape)
47{
48 return aLineOfSightClearance(observerPos, targetPos, bodyShape) < 0.0;
49}
50
51AST_NAMESPACE_END
天体形状基类
定义 BodyShape.hpp:33
bool aLineOfSightObstructed(const Vector3d &observerPos, const Vector3d &targetPos, const BodyShape *bodyShape)
便捷方法:视线是否被中心天体遮挡
定义 BodyObstruction.hpp:43
double aLineOfSightClearance(const Vector3d &observerPos, const Vector3d &targetPos, const BodyShape *bodyShape)
计算视线到天体表面的最短有符号距离
定义 BodyObstruction.cpp:101