Box2I
Description
A two-dimensional bounding box with 32-bit integer precision.
The coordinates refer to blocks (pixel-is-area semantic).
0 1 2 3 4 5 0 . . . . . . X1 := 1, Y1 := 2 1 . . . . . . 2 . # # # . . X2 := 3, Y2 := 3 3 . # # # . . 4 . . . . . . Width := 3, Height := 2 5 . . . . . .
Public / Constants
Public / Methods
Contains
3 overloads
Checks if this box contains the given point.
Checks if this box contains the given point.
Checks if this box contains the given box.
FromPoints
2 overloads
Creates a new instance of Box2I from the given corner points.
Creates a new instance of Box2I from the given corner points.