FastTileDatabase
轻量级高性能瓦片地图数据库
Loading...
Searching...
No Matches
MapEdges::MeFTDPoint2D< T > Class Template Reference

定义二维坐标点 More...

Public Member Functions

 MeFTDPoint2D ()=default
 默认构造函数 More...
 
 MeFTDPoint2D (T nX, T nY)
 通过传入 X,Y直接构建对象 More...
 
virtual MeFTDPoint2D operator= (const MeFTDPoint2D &other)
 
virtual bool operator== (const MeFTDPoint2D< T > &other) const
 比较当前坐标点是否与 other 一致 More...
 
void setX (T nX)
 设置 X More...
 
void setY (T nY)
 设置 Y More...
 
x () const
 返回坐标点的 X More...
 
y () const
 返回坐标点的 Y More...
 

Protected Attributes

mX = 0
 
mY = 0
 

Detailed Description

template<class T>
class MapEdges::MeFTDPoint2D< T >

定义二维坐标点

Constructor & Destructor Documentation

◆ MeFTDPoint2D() [1/2]

template<class T >
MapEdges::MeFTDPoint2D< T >::MeFTDPoint2D ( )
default

默认构造函数

◆ MeFTDPoint2D() [2/2]

template<class T >
MapEdges::MeFTDPoint2D< T >::MeFTDPoint2D ( nX,
nY 
)
inline

通过传入 X,Y直接构建对象

Parameters
[in]nXX坐标
[in]nYY坐标

Member Function Documentation

◆ operator=()

template<class T >
virtual MeFTDPoint2D MapEdges::MeFTDPoint2D< T >::operator= ( const MeFTDPoint2D< T > &  other)
inlinevirtual

◆ operator==()

template<class T >
virtual bool MapEdges::MeFTDPoint2D< T >::operator== ( const MeFTDPoint2D< T > &  other) const
inlinevirtual

比较当前坐标点是否与 other 一致

Parameters
[in]other另一个坐标点
Returns
一致返回true,其他情况返回false

◆ setX()

template<class T >
void MapEdges::MeFTDPoint2D< T >::setX ( nX)
inline

设置 X

Parameters
[in]nX坐标X

◆ setY()

template<class T >
void MapEdges::MeFTDPoint2D< T >::setY ( nY)
inline

设置 Y

Parameters
[in]nY坐标Y

◆ x()

template<class T >
T MapEdges::MeFTDPoint2D< T >::x ( ) const
inline

返回坐标点的 X

Returns
X 值

◆ y()

template<class T >
T MapEdges::MeFTDPoint2D< T >::y ( ) const
inline

返回坐标点的 Y

Returns
Y 值

Member Data Documentation

◆ mX

template<class T >
T MapEdges::MeFTDPoint2D< T >::mX = 0
protected

◆ mY

template<class T >
T MapEdges::MeFTDPoint2D< T >::mY = 0
protected

The documentation for this class was generated from the following file: