public List <Class455.Class456> method_0(Class455.Class460 info) { List <Class455.Class456> intersections = new List <Class455.Class456>(); if (info.point2D_0.X < this.point2D_1.X && info.point2D_1.X > this.point2D_0.X && (info.point2D_0.Y < this.point2D_1.Y && info.point2D_1.Y > this.point2D_0.Y)) { List <Class455.Class459> edgeRefs = new List <Class455.Class459>(this.ilist_0.Count + info.ilist_0.Count); edgeRefs.AddRange((IEnumerable <Class455.Class459>) this.ilist_0); edgeRefs.AddRange((IEnumerable <Class455.Class459>)info.ilist_0); Class455.smethod_4(edgeRefs, intersections); } return(intersections); }
public List <Class455.Class456> method_1(Point3D start, Point3D end) { double x1; double x2; if (start.X < end.X) { x1 = start.X; x2 = end.X; } else { x1 = end.X; x2 = start.X; } double y1; double y2; if (start.Y < end.Y) { y1 = start.Y; y2 = end.Y; } else { y1 = end.Y; y2 = start.Y; } List <Class455.Class456> intersections = new List <Class455.Class456>(); if (x1 < this.point2D_1.X && x2 > this.point2D_0.X && (y1 < this.point2D_1.Y && y2 > this.point2D_0.Y)) { List <Class455.Class459> edgeRefs = new List <Class455.Class459>(this.ilist_0.Count + 2); edgeRefs.AddRange((IEnumerable <Class455.Class459>) this.ilist_0); Class455.Class458 edge = new Class455.Class458(0, start, end, true); edgeRefs.Add(new Class455.Class459(true, edge)); edgeRefs.Add(new Class455.Class459(false, edge)); Class455.smethod_4(edgeRefs, intersections); } return(intersections); }