public static WithinPolygon ( string name, double points ) : |
||
name | string | The name of the element to test. |
points | double | An array of points that defines the polygon (the second dimension must be of length 2). |
return |
public static QueryConditionList WithinPolygon(string name, double[,] points)
{
if (name == null)
{
throw new ArgumentNullException("name");
}
if (points == null)
{
throw new ArgumentNullException("points");
}
return new QueryConditionList(name).WithinPolygon(points);
}
public void TestWithinPolygonInvalidSecondDimension() { var points = new double[, ] { { 1, 2, 3 } }; Assert.Throws <ArgumentOutOfRangeException>(() => Query.WithinPolygon("loc", points)); }