Method WithinRectangle
WithinRectangle(string, double, double, double, double)
Tests that the value of the named element is within a rectangle (see $within and $box).
public static IMongoQuery WithinRectangle(string name, double lowerLeftX, double lowerLeftY, double upperRightX, double upperRightY)
Parameters
name
stringThe name of the element to test.
lowerLeftX
doubleThe x coordinate of the lower left corner.
lowerLeftY
doubleThe y coordinate of the lower left corner.
upperRightX
doubleThe x coordinate of the upper right corner.
upperRightY
doubleThe y coordinate of the upper right corner.
Returns
- IMongoQuery
An IMongoQuery.