f32/d3/rect.go
func (r Rectangle) Add(v Vec3) Rectangle {
	return Rectangle{
		Vec3{r.Min[0] + v[0], r.Min[1] + v[1], r.Min[2] + v[2]},
		Vec3{r.Max[0] + v[0], r.Max[1] + v[1], r.Max[2] + v[2]},
	}
}
func (r Rectangle) Add(v Vec3) Rectangle {
	return Rectangle{
		Vec3{r.Min[0] + v[0], r.Min[1] + v[1], r.Min[2] + v[2]},
		Vec3{r.Max[0] + v[0], r.Max[1] + v[1], r.Max[2] + v[2]},
	}
}
func ( r Rectangle ) Add ( v Vec3 ) Rectangle { return Rectangle { Vec3 { r . Min [ 0 ] + v [ 0 ] , r . Min [ 1 ] + v [ 1 ] , r . Min [ 2 ] + v [ 2 ] } , Vec3 { r . Max [ 0 ] + v [ 0 ] , r . Max [ 1 ] + v [ 1 ] , r . Max [ 2 ] + v [ 2 ] } , } }
// Add returns the rectangle r translated by v.
Add returns the rectangle r translated by v .