Make drawing on rect more mathematically elegant
Make drawing on rect more mathematically elegant