private Point method_3(Class24 class24_1, Class24 class24_2) { if (!class24_1.method_18(class24_2.getPoint0())) { return(class24_2.getPoint0()); } if (!class24_1.method_18(class24_2.getPoint1())) { return(class24_2.getPoint1()); } return(class24_2.getPoint2()); }
internal bool method_17(Class24 class24_0) { return((this.getPoint0().X == class24_0.getPoint0().X&& this.getPoint0().Y == class24_0.getPoint0().Y) || (this.getPoint0().X == class24_0.getPoint1().X&& this.getPoint0().Y == class24_0.getPoint1().Y) || (this.getPoint0().X == class24_0.getPoint2().X&& this.getPoint0().Y == class24_0.getPoint2().Y) || (this.getPoint1().X == class24_0.getPoint0().X&& this.getPoint1().Y == class24_0.getPoint0().Y) || (this.getPoint1().X == class24_0.getPoint1().X&& this.getPoint1().Y == class24_0.getPoint1().Y) || (this.getPoint1().X == class24_0.getPoint2().X&& this.getPoint1().Y == class24_0.getPoint2().Y) || (this.getPoint2().X == class24_0.getPoint0().X&& this.getPoint2().Y == class24_0.getPoint0().Y) || (this.getPoint2().X == class24_0.getPoint1().X&& this.getPoint2().Y == class24_0.getPoint1().Y) || (this.getPoint2().X == class24_0.getPoint2().X&& this.getPoint2().Y == class24_0.getPoint2().Y)); }
public List <Triangle> GetTriangles(bool throwOnError) { if (this.class15_0 == null | this.list_0 == null) { throw new InvalidOperationException("A valid triangulation does not exist. Compute the triangulation first!"); } this.list_2 = new List <Triangle>(); List <Triangle> list = new List <Triangle>(); for (int i = 0; i < this.list_0.Count; i++) { if (this.list_0[i].method_0() && !this.list_0[i].method_12().method_17(this.class24_0)) { Class24 @class = this.list_0[i].method_12(); try { Triangle item = new Triangle(@class.getPoint0(), @class.getPoint1(), @class.getPoint2()); list.Add(item); } catch (System.Exception ex) { double absoluteEpsilon = Global.AbsoluteEpsilon; double relativeEpsilon = Global.RelativeEpsilon; Global.AbsoluteEpsilon = -1.0; Global.RelativeEpsilon = -1.0; Triangle item2 = new Triangle(@class.getPoint0(), @class.getPoint1(), @class.getPoint2()); this.list_2.Add(item2); Global.AbsoluteEpsilon = absoluteEpsilon; Global.RelativeEpsilon = relativeEpsilon; if (throwOnError) { throw new ArithmeticException("Can not convert near-degenerate triangle due to floating point accuracy."); } } } } return(list); }