Rect
Category: Utility
Base class: _BlipValue
Properties
bl : Vec2 (Read-Only)
br : Vec2 (Read-Only)
origin : Vec2 (Read-Only)
ox : float (Read-Only)
oy : float (Read-Only)
pos : Vec2
size : Vec2
tl : Vec2 (Read-Only)
tr : Vec2 (Read-Only)
x0 : float
x1 : float
y0 : float
y1 : float
Constructors
__init__(self)
__init__(self, other: Rect)
Copy constructor for Rect
__init__(self, pos: Vec2, size: Vec2)
__init__(self, x: float, y: float, w: float, h: float)
Methods
canonicalise(self) -> Rect
container(self, r: Rect) -> Rect
intersect(self, r: Rect) -> Rect
intersects(self, r: Rect) -> bool
pointInside(self, p: Vec2) -> bool
rectInside(self, r: Rect) -> bool
Special Methods
__add__(self, v: Vec2) -> Rect
__eq__(self, r: Rect) -> bool
__ne__(self, r: Rect) -> bool
__repr__(self) -> Any
String representation of the Rect