载入中...
搜索中...
未找到
eve::spatial::AABB3结构体 参考

Axis-aligned 3D bounding box (min/max inclusive). 更多...

#include <Bounds.h>

Public 成员函数

float width () const
 Extent along X (max - min).
 
float height () const
 Extent along Y (max - min).
 
float depth () const
 Extent along Z (max - min).
 
float centerX () const
 Center X of the box.
 
float centerY () const
 Center Y of the box.
 
float centerZ () const
 Center Z of the box.
 
bool valid () const
 True when min <= max on every axis.
 
bool containsPoint (float x, float y, float z) const
 True if the point lies inside or on the boundary.
 
bool containsAABB (const AABB3 &o) const
 True if the other box is fully inside this one.
 
bool intersectsAABB (const AABB3 &o) const
 True if the boxes overlap (inclusive edges).
 
bool intersectsSphere (float cx, float cy, float cz, float radius) const
 True if the sphere overlaps this 3D box.
 

Public 属性

float minX = 0.f
 
float minY = 0.f
 
float minZ = 0.f
 
float maxX = 0.f
 
float maxY = 0.f
 
float maxZ = 0.f
 

详细描述

Axis-aligned 3D bounding box (min/max inclusive).

在文件 Bounds.h 第 54 行定义.

成员函数说明

◆ centerX()

float eve::spatial::AABB3::centerX ( ) const
inline

Center X of the box.

在文件 Bounds.h 第 69 行定义.

引用了 maxX , 以及 minX.

◆ centerY()

float eve::spatial::AABB3::centerY ( ) const
inline

Center Y of the box.

在文件 Bounds.h 第 71 行定义.

引用了 maxY , 以及 minY.

◆ centerZ()

float eve::spatial::AABB3::centerZ ( ) const
inline

Center Z of the box.

在文件 Bounds.h 第 73 行定义.

引用了 maxZ , 以及 minZ.

◆ containsAABB()

bool eve::spatial::AABB3::containsAABB ( const AABB3 &  o) const
inline

True if the other box is fully inside this one.

在文件 Bounds.h 第 84 行定义.

引用了 maxX, maxY, maxZ, minX, minY , 以及 minZ.

◆ containsPoint()

bool eve::spatial::AABB3::containsPoint ( float  x,
float  y,
float  z 
) const
inline

True if the point lies inside or on the boundary.

在文件 Bounds.h 第 79 行定义.

引用了 maxZ, minX, minY, minZ, x , 以及 z.

◆ depth()

float eve::spatial::AABB3::depth ( ) const
inline

Extent along Z (max - min).

在文件 Bounds.h 第 67 行定义.

引用了 maxZ , 以及 minZ.

被这些函数引用 eve::spatial::BSPTree3D::BSPTree3D() , 以及 eve::spatial::Octree::Octree().

◆ height()

float eve::spatial::AABB3::height ( ) const
inline

Extent along Y (max - min).

在文件 Bounds.h 第 65 行定义.

引用了 maxY , 以及 minY.

被这些函数引用 eve::spatial::BSPTree3D::BSPTree3D() , 以及 eve::spatial::Octree::Octree().

◆ intersectsAABB()

bool eve::spatial::AABB3::intersectsAABB ( const AABB3 &  o) const
inline

True if the boxes overlap (inclusive edges).

在文件 Bounds.h 第 90 行定义.

引用了 maxX, maxY, maxZ, minX, minY , 以及 minZ.

◆ intersectsSphere()

bool eve::spatial::AABB3::intersectsSphere ( float  cx,
float  cy,
float  cz,
float  radius 
) const
inline

True if the sphere overlaps this 3D box.

在文件 Bounds.h 第 96 行定义.

引用了 cx, cy, dx, dy, dz, maxX, maxY, maxZ, minX, minY, minZ , 以及 radius.

◆ valid()

bool eve::spatial::AABB3::valid ( ) const
inline

True when min <= max on every axis.

在文件 Bounds.h 第 76 行定义.

引用了 maxX, maxY, maxZ, minX, minY , 以及 minZ.

被这些函数引用 eve::spatial::BSPTree3D::BSPTree3D() , 以及 eve::spatial::Octree::Octree().

◆ width()

float eve::spatial::AABB3::width ( ) const
inline

Extent along X (max - min).

在文件 Bounds.h 第 63 行定义.

引用了 maxX , 以及 minX.

被这些函数引用 eve::spatial::BSPTree3D::BSPTree3D() , 以及 eve::spatial::Octree::Octree().

类成员变量说明

◆ maxX

float eve::spatial::AABB3::maxX = 0.f

在文件 Bounds.h 第 58 行定义.

被这些函数引用 centerX(), containsAABB(), intersectsAABB(), intersectsSphere(), valid() , 以及 width().

◆ maxY

float eve::spatial::AABB3::maxY = 0.f

在文件 Bounds.h 第 59 行定义.

被这些函数引用 centerY(), containsAABB(), height(), intersectsAABB(), intersectsSphere() , 以及 valid().

◆ maxZ

float eve::spatial::AABB3::maxZ = 0.f

在文件 Bounds.h 第 60 行定义.

被这些函数引用 centerZ(), containsAABB(), containsPoint(), depth(), intersectsAABB(), intersectsSphere() , 以及 valid().

◆ minX

float eve::spatial::AABB3::minX = 0.f

在文件 Bounds.h 第 55 行定义.

被这些函数引用 centerX(), containsAABB(), containsPoint(), intersectsAABB(), intersectsSphere(), valid() , 以及 width().

◆ minY

float eve::spatial::AABB3::minY = 0.f

在文件 Bounds.h 第 56 行定义.

被这些函数引用 centerY(), containsAABB(), containsPoint(), height(), intersectsAABB(), intersectsSphere() , 以及 valid().

◆ minZ

float eve::spatial::AABB3::minZ = 0.f

在文件 Bounds.h 第 57 行定义.

被这些函数引用 centerZ(), containsAABB(), containsPoint(), depth(), intersectsAABB(), intersectsSphere() , 以及 valid().


该结构体的文档由以下文件生成: