本文整理汇总了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);
}