Пример #1
0
 internal static bool IsInside(Point2D p, Polyline4D polyline)
 {
     if (polyline == null)
     {
         return(false);
     }
     return((0 + Class749.smethod_1(new Ray2D(p, Vector2D.XAxis), polyline)) % 2 == 1);
 }
Пример #2
0
 private static bool smethod_14(Point2D v, Polyline2D[] borders, Polyline2D exclude)
 {
     foreach (Polyline2D border in borders)
     {
         if (border != exclude && Class749.IsInside(v, border))
         {
             return(true);
         }
     }
     return(false);
 }
Пример #3
0
        internal static bool IsInside(Point2D p, IEnumerable <Polyline4D> polylines)
        {
            if (polylines == null)
            {
                return(false);
            }
            int   num = 0;
            Ray2D ray = new Ray2D(p, Vector2D.XAxis);

            foreach (Polyline4D polyline in polylines)
            {
                num += Class749.smethod_1(ray, polyline);
            }
            return(num % 2 == 1);
        }
Пример #4
0
 internal static double smethod_2(Polyline4D polyline, Point2D point)
 {
     return(System.Math.Sqrt(Class749.smethod_3(polyline, point)));
 }