|
ランタイム
|
浮動小数点型矩形クラス More...
#include <RectangleF.h>
Public Member Functions | |
| RectangleF (void) | |
| コンストラクタ More... | |
| RectangleF (Float32 rx, Float32 ry, Float32 rw, Float32 rh) | |
| コンストラクタ More... | |
| RectangleF (const Mix::RectangleF &rect) | |
| コピーコンストラクタ More... | |
| RectangleF (const Mix::Rectangle &rect) | |
| コピーコンストラクタ More... | |
| Boolean | operator== (const RectangleF &rect) const |
| 等価比較 More... | |
| Boolean | operator!= (const RectangleF &rect) const |
| 等価比較 More... | |
| Mix::RectangleF & | operator= (const Mix::RectangleF &rect) |
| 代入( = ) More... | |
| Mix::RectangleF & | operator= (const Mix::Rectangle &rect) |
| 代入( = ) More... | |
| void | Set (Float32 rx, Float32 ry, Float32 rw, Float32 rh) |
| 矩形を設定します More... | |
| Boolean | Contains (const Mix::Vector2 &p) const |
| 指定した点が含まれているかチェックします More... | |
| Boolean | Contains (const Mix::RectangleF &rect, Mix::RectangleF *pOverlapRect=NULL) const |
| 指定した矩形が含まれているかチェックします More... | |
| Float32 | GetRight (void) const |
| 矩形の右端のX座標を取得します More... | |
| void | SetRight (Float32 right) |
| 矩形の右端のX座標を設定します More... | |
| Float32 | GetBottom (void) const |
| 矩形の下端のY座標を取得します More... | |
| void | SetBottom (Float32 bottom) |
| 矩形の下端のY座標を設定します More... | |
Static Public Member Functions | |
| static const Mix::RectangleF & | Zero (void) |
| 初期値( 0.0, 0.0, 0.0, 0.0 )を取得します More... | |
Public Attributes | |
| union { | |
| struct { | |
| Float32 x | |
| X座標 More... | |
| Float32 y | |
| Y座標 More... | |
| Float32 width | |
| 幅 More... | |
| Float32 height | |
| 高さ More... | |
| } | |
| }; | |
浮動小数点型矩形クラス
| Mix::RectangleF::RectangleF | ( | void | ) |
コンストラクタ
コンストラクタ
| [in] | rx | X座標 |
| [in] | ry | Y座標 |
| [in] | rw | 幅 |
| [in] | rh | 高さ |
| Mix::RectangleF::RectangleF | ( | const Mix::RectangleF & | rect | ) |
コピーコンストラクタ
| [in] | rect | 矩形 |
| Mix::RectangleF::RectangleF | ( | const Mix::Rectangle & | rect | ) |
コピーコンストラクタ
| [in] | rect | 矩形 |
| Boolean Mix::RectangleF::operator== | ( | const RectangleF & | rect | ) | const |
等価比較
| [in] | rect | 比較する矩形 |
| Boolean Mix::RectangleF::operator!= | ( | const RectangleF & | rect | ) | const |
等価比較
| [in] | rect | 比較する矩形 |
| Mix::RectangleF& Mix::RectangleF::operator= | ( | const Mix::RectangleF & | rect | ) |
代入( = )
| [in] | rect | 代入元 |
| Mix::RectangleF& Mix::RectangleF::operator= | ( | const Mix::Rectangle & | rect | ) |
代入( = )
| [in] | rect | 代入元 |
矩形を設定します
| [in] | rx | 矩形の左上の X 座標 |
| [in] | ry | 矩形の左上の Y 座標 |
| [in] | rw | 矩形の幅 |
| [in] | rh | 矩形の高さ |
| Boolean Mix::RectangleF::Contains | ( | const Mix::Vector2 & | p | ) | const |
指定した点が含まれているかチェックします
| Boolean Mix::RectangleF::Contains | ( | const Mix::RectangleF & | rect, |
| Mix::RectangleF * | pOverlapRect = NULL |
||
| ) | const |
指定した矩形が含まれているかチェックします
| [in] | rect | 矩形を表す Mix::RectangleF クラス |
| [out] | pOverlapRect | 重なっている矩形を表す Mix::RectangleF クラスのポインタ |
| Float32 Mix::RectangleF::GetRight | ( | void | ) | const |
矩形の右端のX座標を取得します
| void Mix::RectangleF::SetRight | ( | Float32 | right | ) |
矩形の右端のX座標を設定します
| [in] | right | 右端のX座標 |
| Float32 Mix::RectangleF::GetBottom | ( | void | ) | const |
矩形の下端のY座標を取得します
| void Mix::RectangleF::SetBottom | ( | Float32 | bottom | ) |
矩形の下端のY座標を設定します
| [in] | bottom | 下端のY座標 |
|
inlinestatic |
初期値( 0.0, 0.0, 0.0, 0.0 )を取得します
| Float32 Mix::RectangleF::x |
X座標
| Float32 Mix::RectangleF::y |
Y座標
| Float32 Mix::RectangleF::width |
幅
| Float32 Mix::RectangleF::height |
高さ
| union { ... } |