GoMap/app/models/bounds.go
2015-09-07 09:51:26 +09:00

18 lines
240 B
Go

package models
type Bounds struct {
Rectangle
}
func (b *Bounds) String() string {
return b.Min.String() + "-" + b.Max.String()
}
func (b *Bounds) GetWidth() int {
return b.Dx()
}
func (b *Bounds) GetHeight() int {
return b.Dy()
}