You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: minmax.go
    path of file: ./repos/tegola/draw/svg
    
    the code of the file until where you have to start completion: package svg

import (
	"fmt"

	"github.com/go-spatial/tegola"
)

type MinMax struct {
	MinX, MinY, MaxX, MaxY int64
}

func (mm MinMax) Min() (int64, int64) {
	return mm.MinX, mm.MinY
}
func (mm MinMax) Max() (int64, int64) {
	return mm.MaxX, mm.MaxY
}

func (mm MinMax) Width() int64 {
	return mm.MaxX - mm.MinX
}
func (mm MinMax) Height() int64 {
	return mm.MaxY - mm.MinY
}
func (mm MinMax) SentinalPts() [][]int64 {
	return [][]int64{
		{mm.MinX, mm.MinY},
		{mm.MaxX, mm.MinY},
		{mm.MaxX, mm.MaxY},
		{mm.MinX, mm.MaxY},
	}
}

func (mm *MinMax) MinMax(m1 *MinMax) *MinMax {

	if mm == nil {
		mm = &MinMax{}
	}

	if m1 == nil {
    
func (mm *MinMax) OfGeometry(gs ...tegola.Geometry) *MinMax {
	for _, g := range gs {
		switch geo := g.(type) {
		case tegola.Point:
			mm.MinMaxPt(int64(geo.X()), int64(geo.Y()))
		case tegola.MultiPoint:
			for _, pt := range geo.Points() {
				mm.MinMaxPt(int64(pt.X()), int64(pt.Y()))
			}
		case tegola.LineString:
			for _, pt := range geo.Subpoints() {
				mm.MinMaxPt(int64(pt.X()), int64(pt.Y()))
			}
		case tegola.MultiLine:
			for _, ln := range geo.Lines() {
				for _, pt := range ln.Subpoints() {
					mm.MinMaxPt(int64(pt.X()), int64(pt.Y()))
				}
			}
		case tegola.Polygon:
			for _, ln := range geo.Sublines() {
				for _, pt := range ln.Subpoints() {
					mm.MinMaxPt(int64(pt.X()), int64(pt.Y()))
				}
			}
		case tegola.MultiPolygon:
			for _, p := range geo.Polygons() {
				for _, ln := range p.Sublines() {
					for _, pt := range ln.Subpoints() {
						mm.MinMaxPt(int64(pt.X()), int64(pt.Y()))
					}
				}
			}
		}
	}
	return mm
}