1
0
forked from MTSR/mapserver
mapserver/coords/mapblockcoords.go

19 lines
261 B
Go
Raw Normal View History

2019-01-09 12:52:51 +03:00
package coords
type MapBlockCoords struct {
2019-01-13 18:37:03 +03:00
X, Y, Z int
2019-01-09 12:52:51 +03:00
}
2019-01-13 18:37:03 +03:00
func NewMapBlockCoords(x, y, z int) MapBlockCoords {
return MapBlockCoords{X: x, Y: y, Z: z}
2019-01-09 12:52:51 +03:00
}
2019-01-09 13:11:45 +03:00
2019-01-10 17:21:34 +03:00
type MapBlockRange struct {
2019-01-13 18:37:03 +03:00
pos1, pos2 MapBlockCoords
2019-01-10 17:21:34 +03:00
}
2019-01-09 13:11:45 +03:00
const (
2019-01-13 18:37:03 +03:00
MaxCoord = 2047
MinCoord = -2047
2019-01-09 13:11:45 +03:00
)