Пример #1
0
        public Class455(Matrix4D clipBoundaryTransform, Polygon2D clipPolygon, bool inverseClip)
        {
            this.matrix4D_0 = clipBoundaryTransform;
            this.class461_0 = new Class455.Class461(clipPolygon, inverseClip);
            bool couldInvert;

            this.matrix4D_1 = clipBoundaryTransform.GetInverse(out couldInvert);
            if (!couldInvert)
            {
                throw new ArgumentException("Non-invertable clipBoundaryTransform!");
            }
        }
Пример #2
0
        private static bool Contains(Class455.Class461 polyInfo, Point2D point)
        {
            Bounds2D bounds2D0 = polyInfo.bounds2D_0;
            Point2D  min       = bounds2D0.Min;
            Point2D  max       = bounds2D0.Max;

            if (min.X > point.X || max.X < point.X || (min.Y > point.Y || max.Y < point.Y))
            {
                return(polyInfo.bool_0);
            }
            Polygon2D polygon2D0 = polyInfo.polygon2D_0;

            if (polyInfo.bool_0)
            {
                return(!polygon2D0.IsInside(point));
            }
            return(polygon2D0.IsInside(point));
        }
Пример #3
0
 private Class455(Class455 clipper)
 {
     this.matrix4D_0 = clipper.matrix4D_0;
     this.matrix4D_1 = clipper.matrix4D_1;
     this.class461_0 = clipper.class461_0;
 }