BBox
Absolute bounding box with pixel coordinates:Properties
| Property | Type | Description |
|---|---|---|
x1 | int | Left edge |
y1 | int | Top edge |
x2 | int | Right edge |
y2 | int | Bottom edge |
width | int | Box width (x2 - x1) |
height | int | Box height (y2 - y1) |
center | Point | Center point of the box |
Common Usage
Check Point Containment
Create from Center
Tuple Operations
NormalizedBBox
Bounding box with 0.0-1.0 normalized coordinates:Convert to Absolute
From Different Scales
Properties
| Property | Type | Description |
|---|---|---|
x1 | float | Left edge (0.0-1.0) |
y1 | float | Top edge (0.0-1.0) |
x2 | float | Right edge (0.0-1.0) |
y2 | float | Bottom edge (0.0-1.0) |
center | NormalizedPoint | Center as normalized point |