Logo
クラス | 静的公開メンバ関数 | 全メンバ一覧
Yukar.Common.Misc クラス

クラス

class  MaxMin
 
struct  RectangleF
 
struct  Vector3Int
 

静的公開メンバ関数

static Rectangle RectangleIntersect (Rectangle src, Rectangle dst)
 
static Rectangle ClampRectangle (int tw, int th, Rectangle rect)
 
static Rectangle ClampRectangle (int tw, int th, int x, int y, int w, int h)
 
static bool ClampRectangle (int tw, int th, ref int x, ref int y, ref int w, ref int h)
 
static bool HasArea (Rectangle rect)
 
static string GetFlavorText (Rom.FlavorTexts flavorTexts, int index)
 
static T Clamp< T > (T val, T min, T max)
 
static bool IsValidIndex< T > (IReadOnlyList< T > list, int index)
 

メソッド詳解

◆ Clamp< T >()

static T Yukar.Common.Misc.Clamp< T > ( val,
min,
max 
)
static
型制約
T :IComparable<T> 

◆ ClampRectangle() [1/3]

static Rectangle Yukar.Common.Misc.ClampRectangle ( int  tw,
int  th,
int  x,
int  y,
int  w,
int  h 
)
static

◆ ClampRectangle() [2/3]

static Rectangle Yukar.Common.Misc.ClampRectangle ( int  tw,
int  th,
Rectangle  rect 
)
static

◆ ClampRectangle() [3/3]

static bool Yukar.Common.Misc.ClampRectangle ( int  tw,
int  th,
ref int  x,
ref int  y,
ref int  w,
ref int  h 
)
static

◆ GetFlavorText()

static string Yukar.Common.Misc.GetFlavorText ( Rom.FlavorTexts  flavorTexts,
int  index 
)
static

◆ HasArea()

static bool Yukar.Common.Misc.HasArea ( Rectangle  rect)
static

◆ IsValidIndex< T >()

static bool Yukar.Common.Misc.IsValidIndex< T > ( IReadOnlyList< T >  list,
int  index 
)
static

◆ RectangleIntersect()

static Rectangle Yukar.Common.Misc.RectangleIntersect ( Rectangle  src,
Rectangle  dst 
)
static