EncodeBox2DAscending encodes a bounding box in ascending order.
(b []byte, box geopb.BoundingBox)
| 1275 | |
| 1276 | // EncodeBox2DAscending encodes a bounding box in ascending order. |
| 1277 | func EncodeBox2DAscending(b []byte, box geopb.BoundingBox) ([]byte, error) { |
| 1278 | b = append(b, box2DMarker) |
| 1279 | b = EncodeFloatAscending(b, box.LoX) |
| 1280 | b = EncodeFloatAscending(b, box.HiX) |
| 1281 | b = EncodeFloatAscending(b, box.LoY) |
| 1282 | b = EncodeFloatAscending(b, box.HiY) |
| 1283 | return b, nil |
| 1284 | } |
| 1285 | |
| 1286 | // EncodeBox2DDescending encodes a bounding box in descending order. |
| 1287 | func EncodeBox2DDescending(b []byte, box geopb.BoundingBox) ([]byte, error) { |
nothing calls this directly
no test coverage detected
searching dependent graphs…