nodesnim/core/rect2

Types

Rect2Obj = object
  x*, y*, w*, h*: float
Rect2Ref = ref Rect2Obj

Procs

proc Rect2(x, y, w, h: float): Rect2Ref {...}{.raises: [], tags: [].}
proc Rect2(left_top, width_height: Vector2Ref): Rect2Ref {...}{.raises: [], tags: [].}
proc contains(self: Rect2Ref; x, y: float): bool {...}{.inline, raises: [], tags: [].}
proc contains(self: Rect2Ref; vector: Vector2Ref): bool {...}{.inline, raises: [], tags: [].}
proc contains(self, other: Rect2Ref): bool {...}{.raises: [], tags: [].}
proc intersects(self, other: Rect2Ref): bool {...}{.raises: [], tags: [].}
proc contains(self: Rect2Ref; a, b: Vector2Ref): bool {...}{.raises: [], tags: [].}
proc clamp(a, b, c: float): float {...}{.raises: [], tags: [].}
proc isCollideWithCircle(self: Rect2Ref; x, y, r: float): bool {...}{.raises: [], tags: [].}
proc `$`(x: Rect2Ref): string {...}{.raises: [], tags: [].}