operator - method

  1. @override
GeoBox operator -(
  1. Position subtract
)
override

Returns a bounding box with min and max coordinate values of this subtracted with coordinate values of subtract.

Examples:

// Returns: `GeoBox(west: -1.0, south: 2.0, east: 0.0, north: 3.0))`
GeoBox(west: 1.0, south: 1.0, east: 2.0, north: 2.0) -
  Geographic(lon: 2.0, lat: -1.0);

Implementation

@override
GeoBox operator -(Position subtract) =>
    cartesianBoxSubtract(this, subtract, to: GeoBox.create);