Table of Contents

Method WithinRectangle

Namespace
MongoDB.Driver.Builders
Assembly
MongoDB.Driver.Legacy.dll

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 string

The name of the element to test.

lowerLeftX double

The x coordinate of the lower left corner.

lowerLeftY double

The y coordinate of the lower left corner.

upperRightX double

The x coordinate of the upper right corner.

upperRightY double

The y coordinate of the upper right corner.

Returns

IMongoQuery

An IMongoQuery.