Giveda® Embedded Midware  1.2.0
本文档受《版权法》、《版权公约》保护。深圳技达®版权所有
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义 
Public 成员函数 | 友元 | 所有成员列表
GPoint类 参考

GPoint 代表二维平面中的一个点。对二维平面上的一个点进行各种数学运算。 更多...

#include <gPoint.h>

Public 成员函数

 GPoint ()
 
 GPoint (T_OFFSET x, T_OFFSET y)
 
 GPoint (const T_POINT &tp)
 
bool isNull () const
 
T_OFFSET x () const
 
T_OFFSET y () const
 
void setX (T_OFFSET x)
 
void setY (T_OFFSET y)
 
T_OFFSETrx ()
 
T_OFFSETry ()
 
GPointoperator+= (const GPoint &p)
 
GPointoperator-= (const GPoint &p)
 
GPointoperator*= (float c)
 
GPointoperator*= (double c)
 
GPointoperator*= (int c)
 
GPointoperator/= (double c)
 

友元

bool operator== (const GPoint &, const GPoint &)
 
bool operator!= (const GPoint &, const GPoint &)
 
const GPoint operator+ (const GPoint &, const GPoint &)
 
const GPoint operator- (const GPoint &, const GPoint &)
 
const GPoint operator- (const GPoint &)
 
const GPoint operator* (const GPoint &, float)
 
const GPoint operator* (float, const GPoint &)
 
const GPoint operator* (const GPoint &, double)
 
const GPoint operator* (double, const GPoint &)
 
const GPoint operator* (const GPoint &, int)
 
const GPoint operator* (int, const GPoint &)
 
const GPoint operator/ (const GPoint &, double)
 

详细描述

GPoint 代表二维平面中的一个点。对二维平面上的一个点进行各种数学运算。

构造及析构函数说明

GPoint::GPoint ( )
GPoint::GPoint ( T_OFFSET  x,
T_OFFSET  y 
)
GPoint::GPoint ( const T_POINT tp)

成员函数说明

bool GPoint::isNull ( ) const
GPoint& GPoint::operator*= ( float  c)
GPoint& GPoint::operator*= ( double  c)
GPoint& GPoint::operator*= ( int  c)
GPoint& GPoint::operator+= ( const GPoint p)
GPoint& GPoint::operator-= ( const GPoint p)
GPoint& GPoint::operator/= ( double  c)
T_OFFSET& GPoint::rx ( )
T_OFFSET& GPoint::ry ( )
void GPoint::setX ( T_OFFSET  x)
void GPoint::setY ( T_OFFSET  y)
T_OFFSET GPoint::x ( ) const
T_OFFSET GPoint::y ( ) const

友元及相关函数文档

bool operator!= ( const GPoint ,
const GPoint  
)
friend
const GPoint operator* ( const GPoint ,
float   
)
friend
const GPoint operator* ( float  ,
const GPoint  
)
friend
const GPoint operator* ( const GPoint ,
double   
)
friend
const GPoint operator* ( double  ,
const GPoint  
)
friend
const GPoint operator* ( const GPoint ,
int   
)
friend
const GPoint operator* ( int  ,
const GPoint  
)
friend
const GPoint operator+ ( const GPoint ,
const GPoint  
)
friend
const GPoint operator- ( const GPoint ,
const GPoint  
)
friend
const GPoint operator- ( const GPoint )
friend
const GPoint operator/ ( const GPoint ,
double   
)
friend
bool operator== ( const GPoint ,
const GPoint  
)
friend

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