点クラス [詳細]
#include <sgsurface.h>
Public メソッド | |
SGPoint () | |
コンストラクタ | |
SGPoint (int x, int y) | |
コンストラクタ | |
virtual | ~SGPoint () |
デストラクタ | |
void | Set (int x, int y) |
座標を設定する。 | |
void | Move (int dx, int dy) |
座標を移動する。 | |
int | GetX () |
X座標を取得する。. | |
int | GetY () |
Y座標を取得する。. | |
bool | operator== (const SGPoint &arg) const |
bool | operator!= (const SGPoint &arg) const |
点クラス
SGPoint | ( | ) |
コンストラクタ
SGPoint | ( | int | x, | |
int | y | |||
) |
コンストラクタ
x | X座標 | |
y | Y座標 |
~SGPoint | ( | ) | [virtual] |
デストラクタ
void Set | ( | int | x, | |
int | y | |||
) |
座標を設定する。
x | X座標 | |
y | Y座標 |
void Move | ( | int | dx, | |
int | dy | |||
) |
座標を移動する。
dx | X移動量 | |
dy | Y移動量 |
int GetX | ( | ) |
X座標を取得する。.
int GetY | ( | ) |
Y座標を取得する。.