There's also a utility function for this Util.normalizeRect