ランタイム: Mix/RectangleF.h Source File

ランタイム

- Main Page
- Related Pages
- Namespaces
- Classes
- Files

- File List
- File Members

RectangleF.h
Go to the documentation of this file.
1 #pragma once
2
5
6 namespace Mix{
7
8 class Vector2;
9 class Rectangle;
10
13 class _MIX_DLL_API RectangleF
14 {
15 public:
16 union
17 {
18 struct
19 {
20 Float32 x;
21 Float32 y;
22 Float32 width;
23 Float32 height;
24 };
25 };
26
27 public:
29 RectangleF( void );
35 RectangleF( Float32 rx, Float32 ry, Float32 rw, Float32 rh );
38 RectangleF( const Mix::RectangleF& rect );
41 RectangleF( const Mix::Rectangle& rect );
42
43 public:
47 Boolean operator == ( const RectangleF& rect ) const;
51 Boolean operator != ( const RectangleF& rect ) const;
52
56 Mix::RectangleF& operator = ( const Mix::RectangleF& rect );
60 Mix::RectangleF& operator = ( const Mix::Rectangle& rect );
61
67 void Set( Float32 rx, Float32 ry, Float32 rw, Float32 rh );
68
71 Boolean Contains( const Mix::Vector2& p ) const;
76 Boolean Contains( const Mix::RectangleF& rect, Mix::RectangleF* pOverlapRect = NULL ) const;
77
80 Float32 GetRight( void ) const;
83 void SetRight( Float32 right );
86 Float32 GetBottom( void ) const;
89 void SetBottom( Float32 bottom );
90
91 public:
94 static const Mix::RectangleF& Zero( void )
95 {
96 static const Mix::RectangleF zero( 0.0f, 0.0f, 0.0f, 0.0f );
97
98 return zero;
99 }
100 };
101
102 }
Mix::RectangleF::x
Float32 x
X座標
Definition: RectangleF.h:20
Mix::RectangleF::width
Float32 width
幅
Definition: RectangleF.h:22
Mix::RectangleF
浮動小数点型矩形クラス
Definition: RectangleF.h:13
Mix::RectangleF::y
Float32 y
Y座標
Definition: RectangleF.h:21
Mix
ミックス
Definition: AtomicValue.h:6
Mix::Vector2
2次元浮動小数点ベクトルクラス
Definition: Vector2.h:12
Mix::Rectangle
矩形クラス
Definition: Rectangle.h:12
Mix::RectangleF::Zero
static const Mix::RectangleF & Zero(void)
初期値( 0.0, 0.0, 0.0, 0.0 )を取得します
Definition: RectangleF.h:94
Float32
float Float32
32ビット浮動小数点
Definition: Common.h:83
Mix::RectangleF::height
Float32 height
高さ
Definition: RectangleF.h:23
Boolean
BOOL Boolean
32ビットブーリアン
Definition: Common.h:102
_MIX_DLL_API
#define _MIX_DLL_API
DLLインポート定義
Definition: Common.h:38