1
0
forked from MTSR/mapserver
mapserver/coords/mapblockcoords.go
2019-06-13 08:04:32 +02:00

21 lines
305 B
Go

package coords
type MapBlockCoords struct {
X int `json:"x"`
Y int `json:"y"`
Z int `json:"z"`
}
func NewMapBlockCoords(x, y, z int) *MapBlockCoords {
return &MapBlockCoords{X: x, Y: y, Z: z}
}
type MapBlockRange struct {
Pos1, Pos2 *MapBlockCoords
}
const (
MaxCoord = 2047
MinCoord = -2047
)