public WithinRectangle ( double lowerLeftX, double lowerLeftY, double upperRightX, double upperRightY ) : |
||
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. |
Результат |
public QueryConditionList WithinRectangle(
double lowerLeftX,
double lowerLeftY,
double upperRightX,
double upperRightY
) {
conditions.Add("$within", new BsonDocument("$box", new BsonArray { new BsonArray { lowerLeftX, lowerLeftY }, new BsonArray { upperRightX, upperRightY } }));
return this;
}
#endregion