M&B: Bannerlord 1.3.4
The horns sound, the ravens gather.
Loading...
Searching...
No Matches
TaleWorlds.TwoDimension.SimpleRectangle Struct Reference

Public Member Functions

 SimpleRectangle (float x, float y, float width, float height)
 
bool IsCollide (SimpleRectangle other)
 
Vector2 GetCenter ()
 
bool IsSubRectOf (SimpleRectangle other)
 
bool IsValid ()
 
bool IsPointInside (Vector2 point)
 
void ReduceToIntersection (SimpleRectangle other)
 

Static Public Member Functions

static SimpleRectangle Lerp (SimpleRectangle from, SimpleRectangle to, float ratio)
 

Public Attributes

float X
 
float Y
 
float X2
 
float Y2
 

Properties

float Width [get]
 
float Height [get]
 

Constructor & Destructor Documentation

◆ SimpleRectangle()

TaleWorlds.TwoDimension.SimpleRectangle.SimpleRectangle ( float x,
float y,
float width,
float height )

Member Function Documentation

◆ IsCollide()

bool TaleWorlds.TwoDimension.SimpleRectangle.IsCollide ( SimpleRectangle other)

◆ GetCenter()

Vector2 TaleWorlds.TwoDimension.SimpleRectangle.GetCenter ( )

◆ IsSubRectOf()

bool TaleWorlds.TwoDimension.SimpleRectangle.IsSubRectOf ( SimpleRectangle other)

◆ IsValid()

bool TaleWorlds.TwoDimension.SimpleRectangle.IsValid ( )

◆ IsPointInside()

bool TaleWorlds.TwoDimension.SimpleRectangle.IsPointInside ( Vector2 point)

◆ ReduceToIntersection()

void TaleWorlds.TwoDimension.SimpleRectangle.ReduceToIntersection ( SimpleRectangle other)

◆ Lerp()

static SimpleRectangle TaleWorlds.TwoDimension.SimpleRectangle.Lerp ( SimpleRectangle from,
SimpleRectangle to,
float ratio )
static

Member Data Documentation

◆ X

float TaleWorlds.TwoDimension.SimpleRectangle.X

◆ Y

float TaleWorlds.TwoDimension.SimpleRectangle.Y

◆ X2

float TaleWorlds.TwoDimension.SimpleRectangle.X2

◆ Y2

float TaleWorlds.TwoDimension.SimpleRectangle.Y2

Property Documentation

◆ Width

float TaleWorlds.TwoDimension.SimpleRectangle.Width
get

◆ Height

float TaleWorlds.TwoDimension.SimpleRectangle.Height
get