Any "Returns" statement should be the last section in the documentation.

Can you also clarify that a unit rectangle uses a coordinate system of 0 - 1?