public override GlFigure getScaled(float scale) { GlFigureSystem FS = new GlFigureSystem(); foreach (GlFigure F in figuresAmount) { FS.AddFigure(F.getScaled(scale)); } return(FS); }
/// <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()); }
public GlFigureSystem(GlFigureSystem copyFigureSystem) : this(copyFigureSystem == null ? new GlFigure[] { } : copyFigureSystem.figuresAmount) { }