boundingBoxesEqual checks if two bounding boxes are equal.
(bb1, bb2 *storepb.BoundingBox)
| 944 | |
| 945 | // boundingBoxesEqual checks if two bounding boxes are equal. |
| 946 | func boundingBoxesEqual(bb1, bb2 *storepb.BoundingBox) bool { |
| 947 | if bb1 == nil && bb2 == nil { |
| 948 | return true |
| 949 | } |
| 950 | if bb1 == nil || bb2 == nil { |
| 951 | return false |
| 952 | } |
| 953 | |
| 954 | return bb1.Xmin == bb2.Xmin && |
| 955 | bb1.Ymin == bb2.Ymin && |
| 956 | bb1.Xmax == bb2.Xmax && |
| 957 | bb1.Ymax == bb2.Ymax |
| 958 | } |
| 959 | |
| 960 | // gridLevelsEqual checks if two grid level lists are equal. |
| 961 | func gridLevelsEqual(grids1, grids2 []*storepb.GridLevel) bool { |
no outgoing calls
no test coverage detected