mirror of
https://github.com/OpenDiablo2/OpenDiablo2
synced 2024-09-18 09:15:59 -04:00
17 lines
215 B
Go
17 lines
215 B
Go
|
package Common
|
||
|
|
||
|
type Rectangle struct {
|
||
|
Left int
|
||
|
Top int
|
||
|
Width int
|
||
|
Height int
|
||
|
}
|
||
|
|
||
|
func (v *Rectangle) Bottom() int {
|
||
|
return v.Top + v.Height
|
||
|
}
|
||
|
|
||
|
func (v *Rectangle) Right() int {
|
||
|
return v.Left + v.Width
|
||
|
}
|