OROCHI
 
Loading...
Searching...
No Matches
GxSize Struct Reference

サイズ More...

#include <GxStruct.h>

Inheritance diagram for GxSize:
Collaboration diagram for GxSize:

Public Member Functions

初期化
GX_FORCE_INLINE GxSize (void)
 デフォルトコンストラクタ
 
GX_FORCE_INLINE GxSize (s32 width, s32 height)
 コンストラクタ
 
GX_FORCE_INLINE GxSize (const GxRect &rect)
 コンストラクタ
 
GX_FORCE_INLINE GxSize (const GxSize &size)
 コピーコンストラクタ
 
操作
GX_FORCE_INLINE const GxSizeaddScalar (s32 scalar)
 スカラ加算
 
GX_FORCE_INLINE const GxSizesubScalar (s32 scalar)
 スカラ減算
 
GX_FORCE_INLINE const GxSizemulScalar (s32 scalar)
 スカラ乗算
 
GX_FORCE_INLINE const GxSizedivScalar (s32 scalar)
 スカラ除算
 
GX_FORCE_INLINE const GxSizeaddSize (const GxSize &size)
 サイズ加算
 
GX_FORCE_INLINE const GxSizesubSize (const GxSize &size)
 サイズ減算
 
GX_FORCE_INLINE const GxSizemulSize (const GxSize &size)
 サイズ乗算
 

Public Attributes

メンバ変数
s32 _width
 
 
s32 _height
 高さ
 

Static Public Attributes

定義
static const GxSize MIN
 最小
 
static const GxSize MAX
 最大
 
static const GxSize ZERO
 0
 

演算子

GX_FORCE_INLINE GxSizeoperator= (const GxSize &size)
 代入
 
GX_FORCE_INLINE GxSizeoperator+= (s32 scalar)
 スカラ加算代入
 
GX_FORCE_INLINE GxSizeoperator-= (s32 scalar)
 スカラ減算代入
 
GX_FORCE_INLINE GxSizeoperator*= (s32 scalar)
 スカラ乗算代入
 
GX_FORCE_INLINE GxSizeoperator/= (s32 scalar)
 スカラ除算代入
 
GX_FORCE_INLINE GxSizeoperator+= (const GxSize &size)
 サイズ加算代入
 
GX_FORCE_INLINE GxSizeoperator-= (const GxSize &size)
 サイズ減算代入
 
GX_FORCE_INLINE GxSizeoperator&= (const GxSize &size)
 論理積
 
GX_FORCE_INLINE GxSizeoperator|= (const GxSize &size)
 論理和
 
GX_FORCE_INLINE const GxSize operator+ (const GxSize &size, s32 scalar)
 スカラ加算
 
GX_FORCE_INLINE const GxSize operator- (const GxSize &size, s32 scalar)
 スカラ減算
 
GX_FORCE_INLINE const GxSize operator* (const GxSize &size, s32 scalar)
 スカラ乗算
 
GX_FORCE_INLINE const GxSize operator* (s32 scalar, const GxSize &size)
 スカラ乗算
 
GX_FORCE_INLINE const GxSize operator/ (const GxSize &size, s32 scalar)
 スカラ除算
 
GX_FORCE_INLINE const GxSize operator+ (const GxSize &size0, const GxSize &size1)
 サイズ加算
 
GX_FORCE_INLINE const GxSize operator- (const GxSize &size0, const GxSize &size1)
 サイズ減算
 
GX_FORCE_INLINE const GxSize operator& (const GxSize &size0, const GxSize &size1)
 論理積
 
GX_FORCE_INLINE const GxSize operator| (const GxSize &size0, const GxSize &size1)
 論理和
 
GX_FORCE_INLINE b32 operator== (const GxSize &size0, const GxSize &size1)
 一致
 
GX_FORCE_INLINE b32 operator!= (const GxSize &size0, const GxSize &size1)
 不一致
 

アクセサ

GX_INLINE b32 isIncluding (const GxPoint2 &point) const
 内包判定
 
static GX_FORCE_INLINE const GxSizegetAddScalar (GxSize &dst, const GxSize &size, s32 scalar)
 スカラ加算を取得
 
static GX_FORCE_INLINE const GxSizegetSubScalar (GxSize &dst, const GxSize &size, s32 scalar)
 スカラ減算を取得
 
static GX_FORCE_INLINE const GxSizegetMulScalar (GxSize &dst, const GxSize &size, s32 scalar)
 スカラ乗算を取得
 
static GX_FORCE_INLINE const GxSizegetDivScalar (GxSize &dst, const GxSize &size, s32 scalar)
 スカラ除算を取得
 
static GX_FORCE_INLINE const GxSizegetAddSize (GxSize &dst, const GxSize &size0, const GxSize &size1)
 サイズ加算を取得
 
static GX_FORCE_INLINE const GxSizegetSubSize (GxSize &dst, const GxSize &size0, const GxSize &size1)
 サイズ減算を取得
 

Additional Inherited Members

- Static Public Member Functions inherited from GxStructBase
static GxRtti__getStaticRtti (void)
 

Detailed Description

サイズ

Constructor & Destructor Documentation

◆ GxSize() [1/3]

GX_FORCE_INLINE GxSize::GxSize ( s32 width,
s32 height )

コンストラクタ

Parameters
width[in] 幅
height[in] 高さ

◆ GxSize() [2/3]

GX_FORCE_INLINE GxSize::GxSize ( const GxRect & rect)

コンストラクタ

Parameters
rect[in] 矩形

◆ GxSize() [3/3]

GX_FORCE_INLINE GxSize::GxSize ( const GxSize & size)

コピーコンストラクタ

Parameters
size[in] サイズ

Member Function Documentation

◆ addScalar()

GX_FORCE_INLINE const GxSize & GxSize::addScalar ( s32 scalar)

スカラ加算

Parameters
scalar[in] スカラ
Returns
自身の参照
Here is the caller graph for this function:

◆ addSize()

GX_FORCE_INLINE const GxSize & GxSize::addSize ( const GxSize & size)

サイズ加算

Parameters
size[in] サイズ
Returns
自身の参照
Here is the caller graph for this function:

◆ divScalar()

GX_FORCE_INLINE const GxSize & GxSize::divScalar ( s32 scalar)

スカラ除算

Parameters
scalar[in] スカラ
Returns
自身の参照
Here is the caller graph for this function:

◆ getAddScalar()

GX_FORCE_INLINE const GxSize & GxSize::getAddScalar ( GxSize & dst,
const GxSize & size,
s32 scalar )
static

スカラ加算を取得

Parameters
dst[out] 出力先
size[in] サイズ
scalar[in] スカラ
Returns
dstの参照

◆ getAddSize()

GX_FORCE_INLINE const GxSize & GxSize::getAddSize ( GxSize & dst,
const GxSize & size0,
const GxSize & size1 )
static

サイズ加算を取得

Parameters
dst[out] 出力先
size0[in] サイズ
size1[in] サイズ
Returns
dstの参照

◆ getDivScalar()

GX_FORCE_INLINE const GxSize & GxSize::getDivScalar ( GxSize & dst,
const GxSize & size,
s32 scalar )
static

スカラ除算を取得

Parameters
dst[out] 出力先
size[in] サイズ
scalar[in] スカラ
Returns
dstの参照

◆ getMulScalar()

GX_FORCE_INLINE const GxSize & GxSize::getMulScalar ( GxSize & dst,
const GxSize & size,
s32 scalar )
static

スカラ乗算を取得

Parameters
dst[out] 出力先
size[in] サイズ
scalar[in] スカラ
Returns
dstの参照

◆ getSubScalar()

GX_FORCE_INLINE const GxSize & GxSize::getSubScalar ( GxSize & dst,
const GxSize & size,
s32 scalar )
static

スカラ減算を取得

Parameters
dst[out] 出力先
size[in] サイズ
scalar[in] スカラ
Returns
dstの参照

◆ getSubSize()

GX_FORCE_INLINE const GxSize & GxSize::getSubSize ( GxSize & dst,
const GxSize & size0,
const GxSize & size1 )
static

サイズ減算を取得

Parameters
dst[out] 出力先
size0[in] サイズ
size1[in] サイズ
Returns
dstの参照

◆ isIncluding()

GX_INLINE b32 GxSize::isIncluding ( const GxPoint2 & point) const

内包判定

Parameters
point[in] 座標
Returns
内包ならtrue
Here is the caller graph for this function:

◆ mulScalar()

GX_FORCE_INLINE const GxSize & GxSize::mulScalar ( s32 scalar)

スカラ乗算

Parameters
scalar[in] スカラ
Returns
自身の参照
Here is the caller graph for this function:

◆ operator&=()

GX_FORCE_INLINE GxSize & GxSize::operator&= ( const GxSize & size)

論理積

Parameters
size[in] サイズ
Returns
自身の参照
Here is the call graph for this function:

◆ operator*=()

GX_FORCE_INLINE GxSize & GxSize::operator*= ( s32 scalar)

スカラ乗算代入

Parameters
scalar[in] スカラ
Returns
自身の参照
Here is the call graph for this function:

◆ operator+=() [1/2]

GX_FORCE_INLINE GxSize & GxSize::operator+= ( const GxSize & size)

サイズ加算代入

Parameters
size[in] サイズ
Returns
自身の参照
Here is the call graph for this function:

◆ operator+=() [2/2]

GX_FORCE_INLINE GxSize & GxSize::operator+= ( s32 scalar)

スカラ加算代入

Parameters
scalar[in] スカラ
Returns
自身の参照
Here is the call graph for this function:

◆ operator-=() [1/2]

GX_FORCE_INLINE GxSize & GxSize::operator-= ( const GxSize & size)

サイズ減算代入

Parameters
size[in] サイズ
Returns
自身の参照
Here is the call graph for this function:

◆ operator-=() [2/2]

GX_FORCE_INLINE GxSize & GxSize::operator-= ( s32 scalar)

スカラ減算代入

Parameters
scalar[in] スカラ
Returns
自身の参照
Here is the call graph for this function:

◆ operator/=()

GX_FORCE_INLINE GxSize & GxSize::operator/= ( s32 scalar)

スカラ除算代入

Parameters
scalar[in] スカラ
Returns
自身の参照
Here is the call graph for this function:

◆ operator=()

GX_FORCE_INLINE GxSize & GxSize::operator= ( const GxSize & size)

代入

Parameters
size[in] サイズ
Returns
自身の参照

◆ operator|=()

GX_FORCE_INLINE GxSize & GxSize::operator|= ( const GxSize & size)

論理和

Parameters
size[in] サイズ
Returns
自身の参照
Here is the call graph for this function:

◆ subScalar()

GX_FORCE_INLINE const GxSize & GxSize::subScalar ( s32 scalar)

スカラ減算

Parameters
scalar[in] スカラ
Returns
自身の参照
Here is the caller graph for this function:

◆ subSize()

GX_FORCE_INLINE const GxSize & GxSize::subSize ( const GxSize & size)

サイズ減算

Parameters
size[in] サイズ
Returns
自身の参照
Here is the caller graph for this function:

Friends And Related Symbol Documentation

◆ operator!=

GX_FORCE_INLINE b32 operator!= ( const GxSize & size0,
const GxSize & size1 )
friend

不一致

Parameters
size0[in] サイズ
size1[in] サイズ
Returns
不一致ならtrue

◆ operator&

GX_FORCE_INLINE const GxSize operator& ( const GxSize & size0,
const GxSize & size1 )
friend

論理積

Parameters
size0[in] サイズ
size1[in] サイズ
Returns
演算結果

◆ operator* [1/2]

GX_FORCE_INLINE const GxSize operator* ( const GxSize & size,
s32 scalar )
friend

スカラ乗算

Parameters
size[in] サイズ
scalar[in] スカラ
Returns
演算結果

◆ operator* [2/2]

GX_FORCE_INLINE const GxSize operator* ( s32 scalar,
const GxSize & size )
friend

スカラ乗算

Parameters
scalar[in] スカラ
size[in] サイズ
Returns
演算結果

◆ operator+ [1/2]

GX_FORCE_INLINE const GxSize operator+ ( const GxSize & size,
s32 scalar )
friend

スカラ加算

Parameters
size[in] サイズ
scalar[in] スカラ
Returns
演算結果

◆ operator+ [2/2]

GX_FORCE_INLINE const GxSize operator+ ( const GxSize & size0,
const GxSize & size1 )
friend

サイズ加算

Parameters
size0[in] サイズ
size1[in] サイズ
Returns
演算結果

◆ operator- [1/2]

GX_FORCE_INLINE const GxSize operator- ( const GxSize & size,
s32 scalar )
friend

スカラ減算

Parameters
size[in] サイズ
scalar[in] スカラ
Returns
演算結果

◆ operator- [2/2]

GX_FORCE_INLINE const GxSize operator- ( const GxSize & size0,
const GxSize & size1 )
friend

サイズ減算

Parameters
size0[in] サイズ
size1[in] サイズ
Returns
演算結果

◆ operator/

GX_FORCE_INLINE const GxSize operator/ ( const GxSize & size,
s32 scalar )
friend

スカラ除算

Parameters
size[in] サイズ
scalar[in] スカラ
Returns
演算結果

◆ operator==

GX_FORCE_INLINE b32 operator== ( const GxSize & size0,
const GxSize & size1 )
friend

一致

Parameters
size0[in] サイズ
size1[in] サイズ
Returns
一致ならtrue

◆ operator|

GX_FORCE_INLINE const GxSize operator| ( const GxSize & size0,
const GxSize & size1 )
friend

論理和

Parameters
size0[in] サイズ
size1[in] サイズ
Returns
演算結果

The documentation for this struct was generated from the following files: