Esempio n. 1
0
 /// <summary>
 /// Gets a five-pointed star with the specified size and center.
 /// </summary>
 public static XPoint[] GetPentagram(double size, XPoint center)
 {
     XPoint[] points = Pentagram.Clone() as XPoint[];
     for (int idx = 0; idx < 5; idx++)
     {
         points[idx].X = points[idx].X * size + center.X;
         points[idx].Y = points[idx].Y * size + center.Y;
     }
     return(points);
 }
Esempio n. 2
0
        /// <summary>
        /// Gets a five-pointed star with the specified size and center.
        /// </summary>
        protected static XPoint[] GetPentagram(double size, XPoint center)
        {
            var points = (XPoint[])Pentagram.Clone();

            for (var idx = 0; idx < 5; idx++)
            {
                points[idx].X = points[idx].X * size + center.X;
                points[idx].Y = points[idx].Y * size + center.Y;
            }
            return(points);
        }