本文整理匯總了C#中NetTopologySuite.Geometries.GeometryFactory.Disjoint方法的典型用法代碼示例。如果您正苦於以下問題:C# GeometryFactory.Disjoint方法的具體用法?C# GeometryFactory.Disjoint怎麽用?C# GeometryFactory.Disjoint使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類NetTopologySuite.Geometries.GeometryFactory
的用法示例。
在下文中一共展示了GeometryFactory.Disjoint方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: testPredicatesReturnFalseForEmptyGeometries
public void testPredicatesReturnFalseForEmptyGeometries()
{
var p1 = new GeometryFactory().CreatePoint((Coordinate) null);
var p2 = new GeometryFactory().CreatePoint(new Coordinate(5, 5));
Assert.AreEqual(false, p1.Equals(p2));
Assert.AreEqual(true, p1.Disjoint(p2));
Assert.AreEqual(false, p1.Intersects(p2));
Assert.AreEqual(false, p1.Touches(p2));
Assert.AreEqual(false, p1.Crosses(p2));
Assert.AreEqual(false, p1.Within(p2));
Assert.AreEqual(false, p1.Contains(p2));
Assert.AreEqual(false, p1.Overlaps(p2));
Assert.AreEqual(false, p2.Equals(p1));
Assert.AreEqual(true, p2.Disjoint(p1));
Assert.AreEqual(false, p2.Intersects(p1));
Assert.AreEqual(false, p2.Touches(p1));
Assert.AreEqual(false, p2.Crosses(p1));
Assert.AreEqual(false, p2.Within(p1));
Assert.AreEqual(false, p2.Contains(p1));
Assert.AreEqual(false, p2.Overlaps(p1));
}