Set to rect in x/y, minZ..maxZ in z.
rect
minZ
maxZ
void setFromRect(Rect rect, {double minZ = 0.0, double maxZ = 0.0}) => setValues(rect.left, rect.top, minZ, rect.right, rect.bottom, maxZ);