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
Fields
X
public float X
Field Value
X2
public float X2
Field Value
Y
public float Y
Field Value
Y2
public float Y2
Field Value
Properties
Height
public float Height { get; }
Property Value
Width
public float Width { get; }
Property Value
Methods
IsCollide(Rectangle)
public bool IsCollide(Rectangle other)
Parameters
other
Rectangle
Returns
IsPointInside(Vector2)
public bool IsPointInside(Vector2 point)
Parameters
point
Vector2
Returns
IsSubRectOf(Rectangle)
public bool IsSubRectOf(Rectangle other)
Parameters
other
Rectangle
Returns
IsValid()
public bool IsValid()
Returns
This page was last modified at 09/01/2024 16:12:00 +00:00 (UTC).