proc initRect2(): Rect2 {.inline, noinit, raises: [], tags: []
.}
-
Source
Edit
proc initRect2(pos, size: Vector2): Rect2 {.inline, noinit, raises: [], tags: []
.}
-
Source
Edit
proc initRect2(x, y, sizeX, sizeY: float32): Rect2 {.inline, noinit, raises: [], tags: []
.}
-
Source
Edit
proc `$`(self: Rect2): string {.inline, raises: [], tags: []
.}
-
Source
Edit
proc area(self: Rect2): float32 {.inline, noinit, raises: [], tags: []
.}
-
Source
Edit
proc intersects(a, b: Rect2): bool {.inline, noinit, raises: [], tags: []
.}
-
Source
Edit
proc distanceTo(self: Rect2; p: Vector2): float32 {.noinit, raises: [], tags: []
.}
-
Source
Edit
proc encloses(a, b: Rect2): bool {.inline, noinit, raises: [], tags: []
.}
-
Source
Edit
proc hasNoArea(self: Rect2): bool {.inline, noinit, raises: [], tags: []
.}
-
Source
Edit
proc clip(self, b: Rect2): Rect2 {.inline, noinit, raises: [], tags: []
.}
-
Source
Edit
proc merge(self, b: Rect2): Rect2 {.inline, noinit, raises: [], tags: []
.}
-
Source
Edit
proc contains(self: Rect2; point: Vector2): bool {.inline, noinit, raises: [], tags: []
.}
-
Source
Edit
proc grow(self: Rect2; by: float32): Rect2 {.inline, noinit, raises: [], tags: []
.}
-
Returns Rect2 enlarged by the specified size in every direction.
Source
Edit
proc growIndividual(self: Rect2; left, top: float32; right, bottom: float32): Rect2 {.
inline, noinit, raises: [], tags: []
.}
-
Source
Edit
proc expandTo(self: var Rect2; to: Vector2) {.inline, raises: [], tags: []
.}
-
Source
Edit
proc expand(self: Rect2; to: Vector2): Rect2 {.inline, noinit, raises: [], tags: []
.}
-
Source
Edit
proc abs(self: Rect2): Rect2 {.inline, noinit, raises: [], tags: []
.}
-
Source
Edit
proc `==`(a, b: Rect2): bool {.inline, noinit, raises: [], tags: []
.}
-
Source
Edit