Skip to main content
Builds a Box2D from two corner POINT geometries. The corners are taken verbatim — coordinates are not swapped or validated — so the caller is responsible for supplying a lower-left and an upper-right point. Non-POINT arguments raise an IllegalArgumentException. Returns NULL if either point is NULL or empty.

Signatures

Parameters

Point
required
The lower-left corner point.
Point
required
The upper-right corner point.

Return type

The bounding box spanning the two corner points.

Example