Table of Contents

Method WithinCircle

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

WithinCircle(string, double, double, double)

Tests that the value of the named element is within a circle (see $within and $center).

public static IMongoQuery WithinCircle(string name, double centerX, double centerY, double radius)

Parameters

name string

The name of the element to test.

centerX double

The x coordinate of the origin.

centerY double

The y coordinate of the origin.

radius double

The radius of the circle.

Returns

IMongoQuery

An IMongoQuery.

WithinCircle(string, double, double, double, bool)

Tests that the value of the named element is within a circle (see $within and $center).

public static IMongoQuery WithinCircle(string name, double centerX, double centerY, double radius, bool spherical)

Parameters

name string

The name of the element to test.

centerX double

The x coordinate of the origin.

centerY double

The y coordinate of the origin.

radius double

The radius of the circle.

spherical bool

if set to true [spherical].

Returns

IMongoQuery

An IMongoQuery.