Rectangle See topic here: https://gist.github.com/VRRmax/91b1a09d5b2ba8b8452da4093172d76e My implementation in 2 hours chrono.