mirror of
https://github.com/ehrudxo/GoMap.git
synced 2025-07-13 23:58:48 +00:00
18 lines
240 B
Go
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()
|
|
}
|