载入中...
搜索中...
未找到

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()

eve::sensing::GridPoint::GridPoint ( )
default

Constructs an invalid default grid point.

成员函数说明

◆ grid2D()

GridPoint eve::sensing::GridPoint::grid2D ( std::int32_t  x,
std::int32_t  y 
)
staticnoexcept

Creates a 2D integer grid point.

在文件 Targeting.cpp 第 142 行定义.

引用了 eve::sensing::Grid2D, x , 以及 y.

◆ grid3D()

GridPoint eve::sensing::GridPoint::grid3D ( std::int32_t  x,
std::int32_t  y,
std::int32_t  z 
)
staticnoexcept

Creates a 3D integer grid point.

在文件 Targeting.cpp 第 146 行定义.

引用了 eve::sensing::Grid3D, x, y , 以及 z.

◆ isValid()

bool eve::sensing::GridPoint::isValid ( ) const
inlinenoexcept

Returns whether the point was constructed by a grid factory.

在文件 Targeting.h 第 182 行定义.

◆ space()

CoordinateSpace eve::sensing::GridPoint::space ( ) const
inlinenoexcept

Returns the point coordinate space.

在文件 Targeting.h 第 174 行定义.

◆ x()

std::int32_t eve::sensing::GridPoint::x ( ) const
inlinenoexcept

Returns the X cell coordinate.

在文件 Targeting.h 第 176 行定义.

◆ y()

std::int32_t eve::sensing::GridPoint::y ( ) const
inlinenoexcept

Returns the Y cell coordinate.

在文件 Targeting.h 第 178 行定义.

◆ z()

std::int32_t eve::sensing::GridPoint::z ( ) const
inlinenoexcept

Returns the Z cell coordinate; it is zero for Grid2D.

在文件 Targeting.h 第 180 行定义.

友元及相关函数文档

◆ operator==

bool operator== ( const GridPoint &  ,
const GridPoint &   
)
friend

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