Table of Contents

Struct Rectangle

Namespace
TaleWorlds.TwoDimension
Assembly
TaleWorlds.TwoDimension.dll
public struct Rectangle
Inherited Members
Extension Methods

Constructors

Rectangle(float, float, float, float)

public Rectangle(float x, float y, float width, float height)

Parameters

x float
y float
width float
height float

Fields

X

public float X

Field Value

float

X2

public float X2

Field Value

float

Y

public float Y

Field Value

float

Y2

public float Y2

Field Value

float

Properties

Height

public float Height { get; }

Property Value

float

Width

public float Width { get; }

Property Value

float

Methods

IsCollide(Rectangle)

public bool IsCollide(Rectangle other)

Parameters

other Rectangle

Returns

bool

IsPointInside(Vector2)

public bool IsPointInside(Vector2 point)

Parameters

point Vector2

Returns

bool

IsSubRectOf(Rectangle)

public bool IsSubRectOf(Rectangle other)

Parameters

other Rectangle

Returns

bool

IsValid()

public bool IsValid()

Returns

bool

This page was last modified at 09/01/2024 16:12:00 +00:00 (UTC).