Documentation ¶
Index ¶
Constants ¶
View Source
const (
// limit vector dimension
AP_LIMIT = 4
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type APVector ¶
type APVector struct { gorm.Model MapID uint `gorm:"map_id"` I0, I1, I2, I3 int64 LocX, LocY float64 }
func GetVecByMap ¶
func GetVecByMap(m *LocationMap) (vecList []APVector, err error)
func (APVector) GetLocation ¶
type LocationMap ¶
type LocationMap struct { gorm.Model Name string Path string `gorm:"comment:地图图像存储的路径"` Width int64 `gorm:"comment:地图宽度"` Height int64 `gorm:"comment:地图高度"` }
func GetAllMap ¶
func GetAllMap() (maps []*LocationMap, err error)
GetAllMap return all location map in DB
func GetMap ¶
func GetMap(mapID uint) (*LocationMap, error)
GetMap return the map info of mapID in DB,
if map not existed, return map will be nil.
Click to show internal directories.
Click to hide internal directories.