Example #1
0
		/// <summary>
		/// Initializes a new instance of the <see cref="Polygon"/> classu sing coordinates from another instance.
		/// </summary>
		/// <param name="polygon">A <see cref="Polygon"/> instance.</param>
		public Polygon(Polygon polygon)
		{
			_points.AddRange(polygon._points);
		}
Example #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Polygon"/> classu sing coordinates from another instance.
 /// </summary>
 /// <param name="polygon">A <see cref="Polygon"/> instance.</param>
 public Polygon(Polygon polygon)
 {
     _points.AddRange(polygon._points);
 }