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

#include <Bounds.h>

Public 成员函数

float width () const
 
float height () const
 
float centerX () const
 
float centerY () const
 
bool valid () const
 
bool containsPoint (float x, float y) const
 
bool containsAABB (const AABB2 &o) const
 
bool intersectsAABB (const AABB2 &o) const
 
bool intersectsCircle (float cx, float cy, float radius) const
 

Public 属性

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

详细描述

在文件 Bounds.h9 行定义.

成员函数说明

◆ centerX()

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

在文件 Bounds.h17 行定义.

引用了 maxX , 以及 minX.

◆ centerY()

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

在文件 Bounds.h18 行定义.

引用了 maxY , 以及 minY.

◆ containsAABB()

bool eve::spatial::AABB2::containsAABB ( const AABB2 o) const
inline

在文件 Bounds.h26 行定义.

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

◆ containsPoint()

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

在文件 Bounds.h22 行定义.

引用了 maxY, minX, minY, x , 以及 y.

◆ height()

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

在文件 Bounds.h16 行定义.

引用了 maxY , 以及 minY.

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

◆ intersectsAABB()

bool eve::spatial::AABB2::intersectsAABB ( const AABB2 o) const
inline

在文件 Bounds.h30 行定义.

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

◆ intersectsCircle()

bool eve::spatial::AABB2::intersectsCircle ( float  cx,
float  cy,
float  radius 
) const
inline

在文件 Bounds.h34 行定义.

引用了 cx, cy, maxX, maxY, minX , 以及 minY.

◆ valid()

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

在文件 Bounds.h20 行定义.

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

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

◆ width()

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

在文件 Bounds.h15 行定义.

引用了 maxX , 以及 minX.

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

类成员变量说明

◆ maxX

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

◆ maxY

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

◆ minX

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

◆ minY

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

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