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)
 
static float ClampAngle360 (float angle)
 
static float ClampAngle180 (float angle)
 
static string PtrToStringUtf8 (IntPtr ptr)
 
static bool IsSamePath (string path1, string path2)
 

メソッド詳解

◆ Clamp< T >()

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

◆ ClampAngle180()

static float Yukar.Common.Misc.ClampAngle180 ( float  angle)
static

◆ ClampAngle360()

static float Yukar.Common.Misc.ClampAngle360 ( float  angle)
static

◆ 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

◆ IsSamePath()

static bool Yukar.Common.Misc.IsSamePath ( string  path1,
string  path2 
)
static

◆ IsValidIndex< T >()

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

◆ PtrToStringUtf8()

static string Yukar.Common.Misc.PtrToStringUtf8 ( IntPtr  ptr)
static

◆ RectangleIntersect()

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