An integer grid area constraint, kept separate from WorldArea. 更多...
#include <Targeting.h>
Public 类型 | |
| enum class | Shape : std::uint8_t { Box2D , Box3D } |
| Shape public API. 更多... | |
Public 成员函数 | |
| GridArea ()=default | |
| Constructs an invalid default grid area. | |
| Shape | shape () const noexcept |
| Returns the area shape. | |
| CoordinateSpace | space () const noexcept |
| Returns the area coordinate space. | |
| bool | isValid () const noexcept |
| Returns whether this area is valid. | |
| GridPoint | minimum () const noexcept |
| Return the inclusive minimum grid corner. | |
| GridPoint | maximum () const noexcept |
| Return the inclusive maximum grid corner. | |
| bool | contains (GridPoint point) const noexcept |
| Tests a grid point without converting coordinate spaces. | |
静态 Public 成员函数 | |
| static Result< GridArea > | box2D (GridPoint minimum, GridPoint maximum) |
| Creates an inclusive 2D grid rectangle. | |
| static Result< GridArea > | box3D (GridPoint minimum, GridPoint maximum) |
| Creates an inclusive 3D grid box. | |
详细描述
An integer grid area constraint, kept separate from WorldArea.
Grid distances and world distances have different units. A grid area must be authored and queried in the same Grid2D or Grid3D space.
在文件 Targeting.h 第 273 行定义.
成员枚举类型说明
◆ Shape
|
strong |
构造及析构函数说明
◆ GridArea()
|
default |
成员函数说明
◆ box2D()
Creates an inclusive 2D grid rectangle.
在文件 Targeting.cpp 第 221 行定义.
引用了 Box2D, eve::Result< T >::failure(), eve::sensing::Grid2D, GridArea(), maximum(), minimum(), eve::Result< T >::success() , 以及 valid.
◆ box3D()
Creates an inclusive 3D grid box.
在文件 Targeting.cpp 第 227 行定义.
引用了 Box3D, eve::Result< T >::failure(), eve::sensing::Grid3D, GridArea(), maximum(), minimum(), eve::Result< T >::success() , 以及 valid.
◆ contains()
|
noexcept |
◆ isValid()
|
inlinenoexcept |
Returns whether this area is valid.
在文件 Targeting.h 第 290 行定义.
◆ maximum()
|
inlinenoexcept |
◆ minimum()
|
inlinenoexcept |
◆ shape()
|
inlinenoexcept |
Returns the area shape.
在文件 Targeting.h 第 286 行定义.
◆ space()
|
inlinenoexcept |
Returns the area coordinate space.
在文件 Targeting.h 第 288 行定义.
该类的文档由以下文件生成:
- src/modules/sensing/Targeting.h
- src/modules/sensing/Targeting.cpp