M&B: Bannerlord 1.2.7
The horns sound, the ravens gather.
Loading...
Searching...
No Matches
TaleWorlds.TwoDimension.Mathf Class Reference

Static Public Member Functions

static float Sqrt (float f)
 
static float Abs (float f)
 
static float Floor (float f)
 
static float Cos (float radian)
 
static float Sin (float radian)
 
static float Acos (float f)
 
static float Atan2 (float y, float x)
 
static float Clamp (float value, float min, float max)
 
static int Clamp (int value, int min, int max)
 
static float Min (float a, float b)
 
static float Max (float a, float b)
 
static bool IsZero (float f)
 
static bool IsZero (Vector2 vector2)
 
static float Sign (float f)
 
static float Ceil (float f)
 
static float Round (float f)
 
static float Lerp (float start, float end, float amount)
 

Static Public Attributes

const float PI = 3.14159265359f
 
const float Deg2Rad = PI / 180.0f
 
const float Rad2Deg = 180.0f / PI
 
const float Epsilon = 0.00001f
 

Member Function Documentation

◆ Sqrt()

static float TaleWorlds.TwoDimension.Mathf.Sqrt ( float  f)
static

◆ Abs()

static float TaleWorlds.TwoDimension.Mathf.Abs ( float  f)
static

◆ Floor()

static float TaleWorlds.TwoDimension.Mathf.Floor ( float  f)
static

◆ Cos()

static float TaleWorlds.TwoDimension.Mathf.Cos ( float  radian)
static

◆ Sin()

static float TaleWorlds.TwoDimension.Mathf.Sin ( float  radian)
static

◆ Acos()

static float TaleWorlds.TwoDimension.Mathf.Acos ( float  f)
static

◆ Atan2()

static float TaleWorlds.TwoDimension.Mathf.Atan2 ( float  y,
float  x 
)
static

◆ Clamp() [1/2]

static float TaleWorlds.TwoDimension.Mathf.Clamp ( float  value,
float  min,
float  max 
)
static

◆ Clamp() [2/2]

static int TaleWorlds.TwoDimension.Mathf.Clamp ( int  value,
int  min,
int  max 
)
static

◆ Min()

static float TaleWorlds.TwoDimension.Mathf.Min ( float  a,
float  b 
)
static

◆ Max()

static float TaleWorlds.TwoDimension.Mathf.Max ( float  a,
float  b 
)
static

◆ IsZero() [1/2]

static bool TaleWorlds.TwoDimension.Mathf.IsZero ( float  f)
static

◆ IsZero() [2/2]

static bool TaleWorlds.TwoDimension.Mathf.IsZero ( Vector2  vector2)
static

◆ Sign()

static float TaleWorlds.TwoDimension.Mathf.Sign ( float  f)
static

◆ Ceil()

static float TaleWorlds.TwoDimension.Mathf.Ceil ( float  f)
static

◆ Round()

static float TaleWorlds.TwoDimension.Mathf.Round ( float  f)
static

◆ Lerp()

static float TaleWorlds.TwoDimension.Mathf.Lerp ( float  start,
float  end,
float  amount 
)
static

Member Data Documentation

◆ PI

const float TaleWorlds.TwoDimension.Mathf.PI = 3.14159265359f
static

◆ Deg2Rad

const float TaleWorlds.TwoDimension.Mathf.Deg2Rad = PI / 180.0f
static

◆ Rad2Deg

const float TaleWorlds.TwoDimension.Mathf.Rad2Deg = 180.0f / PI
static

◆ Epsilon

const float TaleWorlds.TwoDimension.Mathf.Epsilon = 0.00001f
static