ランタイム
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
Point.h
Go to the documentation of this file.
1
#pragma once
2
5
6
namespace
Mix
7
{
8
class
Vector2;
9
12
class
_MIX_DLL_API
Point
13
{
14
public
:
15
union
16
{
17
struct
18
{
19
Int32
x
;
20
Int32
y
;
21
};
22
23
Int32
data[2];
24
};
25
26
public
:
28
Point
(
void
);
32
Point
(
Int32
px,
Int32
py );
35
Point
(
const
Point
& pp );
38
Point
(
const
Vector2
& pp );
39
40
public
:
44
Boolean
operator == (
const
Point
& pp )
const
;
48
Boolean
operator != (
const
Point
& pp )
const
;
49
53
Point
& operator = (
const
Point
& pp );
57
Point
& operator = (
const
Vector2
& pp );
61
Point
& operator += (
const
Point
& pp );
65
Point
& operator -= (
const
Point
& pp );
69
Point
& operator *= (
const
Point
& pp );
73
Point
& operator /= (
const
Point
& pp );
74
78
Point
operator + (
const
Point
& pp )
const
;
82
Point
operator - (
const
Point
& pp )
const
;
86
Point
operator * (
const
Point
& pp )
const
;
90
Point
operator / (
const
Point
& pp )
const
;
91
94
Point
operator -(
void
)
const
;
95
99
Point
& operator *= (
Int32
s );
103
Point
& operator /= (
Int32
s );
104
108
Point
operator * (
Int32
s )
const
;
112
Point
operator / (
Int32
s )
const
;
113
117
void
Set(
Int32
px,
Int32
py );
118
123
static
Point
Min(
const
Point
& p0,
const
Point
& p1 );
124
129
static
Point
Max(
const
Point
& p0,
const
Point
& p1 );
130
131
public
:
134
static
const
Mix::Point
&
Zero
(
void
)
135
{
136
static
const
Mix::Point
zero( 0, 0 );
137
138
return
zero;
139
}
140
};
141
};
Mix::Point
ポイントクラス
Definition:
Point.h:12
Mix::Point::x
Int32 x
X.
Definition:
Point.h:19
Mix::Point::y
Int32 y
Y.
Definition:
Point.h:20
Int32
int Int32
符号有り32ビット整数
Definition:
Common.h:65
Mix
ミックス
Definition:
AtomicValue.h:6
Mix::Vector2
2次元浮動小数点ベクトルクラス
Definition:
Vector2.h:12
Mix::Point::Zero
static const Mix::Point & Zero(void)
初期値( 0, 0 )を取得します
Definition:
Point.h:134
Boolean
BOOL Boolean
32ビットブーリアン
Definition:
Common.h:102
_MIX_DLL_API
#define _MIX_DLL_API
DLLインポート定義
Definition:
Common.h:38
Mix
Point.h
Generated on Mon Mar 21 2016 10:58:24 for ランタイム by
1.8.9.1