Logo
Classes | Static Public Member Functions | List of all members
Yukar.Common.Misc Class Reference

Classes

class  MaxMin
 
struct  RectangleF
 
struct  Vector3Int
 

Static Public Member Functions

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)
 

Member Function Documentation

◆ Clamp< T >()

static T Yukar.Common.Misc.Clamp< T > ( val,
min,
max 
)
static
Type Constraints
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