boundingRectForUnitSquare

Computes the bounding rectangle for a unit square after applying a transformation matrix to the square's four corners.

Return

the result argument set to the computed bounding rectangle

Parameters

result

a pre-allocated Viewport in which to return the computed bounding rectangle