跳到主要内容

Rect

Axis-aligned rectangle represented as a tuple.

Invariants:

  • rect[0] < rect[2] (x1 < x2)
  • rect[1] < rect[3] (y1 < y2)

Type

Object

Properties

NameTypeDescription
0ptx1 (left)
1pty1 (top)
2ptx2 (right)
3pty2 (bottom)