Integer grid point tagged as Grid2D or Grid3D. 更多...
#include <Targeting.h>
Public 成员函数 | |
| GridPoint ()=default | |
| Constructs an invalid default grid point. | |
| CoordinateSpace | space () const noexcept |
| Returns the point coordinate space. | |
| std::int32_t | x () const noexcept |
| Returns the X cell coordinate. | |
| std::int32_t | y () const noexcept |
| Returns the Y cell coordinate. | |
| std::int32_t | z () const noexcept |
| Returns the Z cell coordinate; it is zero for Grid2D. | |
| bool | isValid () const noexcept |
| Returns whether the point was constructed by a grid factory. | |
静态 Public 成员函数 | |
| static GridPoint | grid2D (std::int32_t x, std::int32_t y) noexcept |
| Creates a 2D integer grid point. | |
| static GridPoint | grid3D (std::int32_t x, std::int32_t y, std::int32_t z) noexcept |
| Creates a 3D integer grid point. | |
友元 | |
| bool | operator== (const GridPoint &, const GridPoint &) noexcept=default |
详细描述
Integer grid point tagged as Grid2D or Grid3D.
Grid units are cells, not world meters. No implicit conversion to WorldPoint exists; a project-specific map adapter must perform any mapping.
在文件 Targeting.h 第 163 行定义.
构造及析构函数说明
◆ GridPoint()
|
default |
Constructs an invalid default grid point.
成员函数说明
◆ grid2D()
|
staticnoexcept |
◆ grid3D()
|
staticnoexcept |
Creates a 3D integer grid point.
在文件 Targeting.cpp 第 146 行定义.
引用了 eve::sensing::Grid3D, x, y , 以及 z.
◆ isValid()
|
inlinenoexcept |
Returns whether the point was constructed by a grid factory.
在文件 Targeting.h 第 182 行定义.
◆ space()
|
inlinenoexcept |
Returns the point coordinate space.
在文件 Targeting.h 第 174 行定义.
◆ x()
|
inlinenoexcept |
Returns the X cell coordinate.
在文件 Targeting.h 第 176 行定义.
◆ y()
|
inlinenoexcept |
Returns the Y cell coordinate.
在文件 Targeting.h 第 178 行定义.
◆ z()
|
inlinenoexcept |
Returns the Z cell coordinate; it is zero for Grid2D.
在文件 Targeting.h 第 180 行定义.
友元及相关函数文档
◆ operator==
该类的文档由以下文件生成:
- src/modules/sensing/Targeting.h
- src/modules/sensing/Targeting.cpp