Ejemplo n.º 1
0
        public override GlFigure getScaled(float scale)
        {
            GlFigureSystem FS = new GlFigureSystem();

            foreach (GlFigure F in figuresAmount)
            {
                FS.AddFigure(F.getScaled(scale));
            }
            return(FS);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Determines an anmount of points, created by intersection of a figure and a figure system
        /// </summary>
        /// <returns>An array of intersections</returns>
        public GlPointR2[] getIntersection(GlFigureSystem FS)
        {
            if (FS == null)
            {
                return new GlPointR2[] { }
            }
            ;

            List <GlPointR2> I = new List <GlPointR2>();

            for (int i = 0; i < FS.CountOfFigures; i++)
            {
                foreach (GlPointR2 P in this.getIntersection(FS[i]))
                {
                    I.Add(P);
                }
            }
            return(I.ToArray());
        }
Ejemplo n.º 3
0
 public GlFigureSystem(GlFigureSystem copyFigureSystem) :
     this(copyFigureSystem == null ? new GlFigure[] { } : copyFigureSystem.figuresAmount)
 {
 }