| 1445 | }) |
| 1446 | |
| 1447 | func makeBox2DComparisonOperators(op func(lhs, rhs *geo.CartesianBoundingBox) bool) cmpOpOverload { |
| 1448 | return cmpOpOverload{ |
| 1449 | &CmpOp{ |
| 1450 | LeftType: types.Box2D, |
| 1451 | RightType: types.Box2D, |
| 1452 | Volatility: VolatilityImmutable, |
| 1453 | }, |
| 1454 | &CmpOp{ |
| 1455 | LeftType: types.Box2D, |
| 1456 | RightType: types.Geometry, |
| 1457 | Volatility: VolatilityImmutable, |
| 1458 | }, |
| 1459 | &CmpOp{ |
| 1460 | LeftType: types.Geometry, |
| 1461 | RightType: types.Box2D, |
| 1462 | Volatility: VolatilityImmutable, |
| 1463 | }, |
| 1464 | &CmpOp{ |
| 1465 | LeftType: types.Geometry, |
| 1466 | RightType: types.Geometry, |
| 1467 | Volatility: VolatilityImmutable, |
| 1468 | }, |
| 1469 | } |
| 1470 | } |
| 1471 | |
| 1472 | // This map contains the inverses for operators in the CmpOps map that have |
| 1473 | // inverses. |