MCPcopy Create free account
hub / github.com/bytebase/bytebase / boundingBoxesEqual

Function boundingBoxesEqual

backend/plugin/schema/differ.go:946–958  ·  view source on GitHub ↗

boundingBoxesEqual checks if two bounding boxes are equal.

(bb1, bb2 *storepb.BoundingBox)

Source from the content-addressed store, hash-verified

944
945// boundingBoxesEqual checks if two bounding boxes are equal.
946func 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.
961func gridLevelsEqual(grids1, grids2 []*storepb.GridLevel) bool {

Callers 1

tessellationConfigsEqualFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected