func (r Rectangle) Add(v Vec2) Rectangle {
	return Rectangle{
		Vec2{r.Min[0] + v[0], r.Min[1] + v[1]},
		Vec2{r.Max[0] + v[0], r.Max[1] + v[1]},
	}
}
func (r Rectangle) Add(v Vec2) Rectangle {
	return Rectangle{
		Vec2{r.Min[0] + v[0], r.Min[1] + v[1]},
		Vec2{r.Max[0] + v[0], r.Max[1] + v[1]},
	}
}
func ( r Rectangle ) Add ( v Vec2 ) Rectangle { return Rectangle { Vec2 { r . Min [ 0 ] + v [ 0 ] , r . Min [ 1 ] + v [ 1 ] } , Vec2 { r . Max [ 0 ] + v [ 0 ] , r . Max [ 1 ] + v [ 1 ] } , } }
// Add returns the rectangle r translated by v.
Add returns the rectangle r translated by v .