24#include "AstMath/Vector.hpp"
49 double angularMargin(
const Vector3d& direction)
const override;
53 void addVertex(
const Vector3d& vertex) { vertices_.push_back(vertex); }
57 const std::vector<Vector3d>&
getVertices()
const {
return vertices_; }
60 std::vector<Vector3d> vertices_{};
自定义视场类
定义 FOVCustom.hpp:30
EFOVType getFOVType() const override
获取视场类型
定义 FOVCustom.hpp:40
void addVertex(const Vector3d &vertex)
添加顶点
定义 FOVCustom.hpp:53
void accept(FieldOfViewVisitor &visitor) override
接受访问者
定义 FOVCustom.hpp:44
~FOVCustom() override=default
析构函数
const std::vector< Vector3d > & getVertices() const
获取顶点列表
定义 FOVCustom.hpp:57
定义 FieldOfViewVisitor.hpp:41
视场基类
定义 FieldOfView.hpp:43
virtual double angularMargin(const Vector3d &direction) const =0
计算方向向量到 FOV 边界的角度余量(弧度)
EFOVType
视场类型枚举
定义 FieldOfView.hpp:32