跳到主要内容

RectDiff

Axis-aligned rectangle difference represented as a tuple. Describes coordinate-wise deltas between two rectangles (B - A).

Invariants:

  • diff[0] = x1B - x1A
  • diff[1] = y1B - y1A
  • diff[2] = x2B - x2A
  • diff[3] = y2B - y2A

Type

Object

Properties

NameTypeDescription
0ptdx1 (left delta)
1ptdy1 (top delta)
2ptdx2 (right delta)
3ptdy2 (bottom delta)