panlei
2019-06-22 7f33dadd11c44b872e4e0b0c43504c318f0d4d3c
注释看矩形数据
1个文件已修改
1 ■■■■ 已修改文件
main.go 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
main.go
@@ -118,6 +118,7 @@
// 将外部传进来的rect(top,bottom,left,right)转化为自己内部的rect(left top width height)
func rectFormat(rcobj *protomsg.Rect) ruleserver.Rect {
    rect := ruleserver.Rect{}
    fmt.Println("看一下传入的矩形数据:",rcobj.Left,rcobj.Top,rcobj.Right,rcobj.Bottom)
    rect.X = float64(rcobj.Left)
    rect.Y = float64(rcobj.Top)
    rect.Width = float64(rcobj.Right - rcobj.Left)