Method WithinCircle
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
stringThe name of the element to test.
centerX
doubleThe x coordinate of the origin.
centerY
doubleThe y coordinate of the origin.
radius
doubleThe 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
stringThe name of the element to test.
centerX
doubleThe x coordinate of the origin.
centerY
doubleThe y coordinate of the origin.
radius
doubleThe radius of the circle.
spherical
boolif set to
true
[spherical].
Returns
- IMongoQuery
An IMongoQuery.