ランタイム
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 
14  {
15  public:
16  union
17  {
18  struct
19  {
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 }
Float32 x
X座標
Definition: RectangleF.h:20
Float32 width
Definition: RectangleF.h:22
浮動小数点型矩形クラス
Definition: RectangleF.h:13
Float32 y
Y座標
Definition: RectangleF.h:21
ミックス
Definition: AtomicValue.h:6
2次元浮動小数点ベクトルクラス
Definition: Vector2.h:12
矩形クラス
Definition: Rectangle.h:12
static const Mix::RectangleF & Zero(void)
初期値( 0.0, 0.0, 0.0, 0.0 )を取得します
Definition: RectangleF.h:94
float Float32
32ビット浮動小数点
Definition: Common.h:83
Float32 height
高さ
Definition: RectangleF.h:23
BOOL Boolean
32ビットブーリアン
Definition: Common.h:102
#define _MIX_DLL_API
DLLインポート定義
Definition: Common.h:38