本文整理匯總了C#中System.Drawing.PointF.Except方法的典型用法代碼示例。如果您正苦於以下問題:C# PointF.Except方法的具體用法?C# PointF.Except怎麽用?C# PointF.Except使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類System.Drawing.PointF
的用法示例。
在下文中一共展示了PointF.Except方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: getConvexHullTest
public void getConvexHullTest()
{
PointF[] polygons = new PointF[] { new Point(0,0), new Point(0, 2), new Point(2, 2),
new Point(2,0), new Point(1,1) };
List<PointF> convexHull = Utils.getConvexHull(polygons.ToList());
List<PointF> trueConvexHull = new PointF[] {new Point(0,0), new Point(0, 2), new Point(2, 2),
new Point(2,0)}.ToList();
Assert.AreEqual(trueConvexHull.Except(convexHull).Count(), 0);
Assert.AreEqual(convexHull.Except(trueConvexHull).Count(), 0);
polygons = new PointF[] { new Point(0,0), new Point(0, 4), new Point(1, 3), new Point(2, 2), new Point(4, 5),
new Point(4,1), new Point(5,0) };
convexHull = Utils.getConvexHull(polygons.ToList());
trueConvexHull = new PointF[] {new Point(0,0), new Point(0, 4), new Point(4, 5),
new Point(5,0) }.ToList();
Assert.AreEqual(trueConvexHull.Except(convexHull).Count(), 0);
Assert.AreEqual(convexHull.Except(trueConvexHull).Count(), 0);
}