AnyCAD C++ API  2018
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义 
Public 成员函数 | 所有成员列表
AnyCAD::API::Frustum类 参考

视锥体 更多...

#include <APIFrustum.h>

Public 成员函数

bool IsVisible (const AABox &bbox) const
 
bool IsVisible (const Vector3 &pt) const
 
bool IsInterset (const AABox &bbox) const
 
bool Contains (const AABox &bbox) const
 

详细描述

视锥体

描述相机的视锥体参数。

成员函数说明

bool AnyCAD::API::Frustum::Contains ( const AABox bbox) const

判断包围盒是否被包含在视锥体内。

参数
bbox被测试的包围盒。
返回
true 如果包含。
bool AnyCAD::API::Frustum::IsInterset ( const AABox bbox) const

判断包围盒是否与视锥体相交

参数
bbox被测试的包围盒。
返回
true 如果相交。
bool AnyCAD::API::Frustum::IsVisible ( const AABox bbox) const

判断包围盒是否在视锥体中可见。

参数
bbox被测试的包围盒。
返回
true 如果可见。
bool AnyCAD::API::Frustum::IsVisible ( const Vector3 pt) const

判断某个点是否在视锥体中可见。

参数
pt被测试的点。
返回
true 如果可见。

该类的文档由以下文件生成: