Ejemplo n.º 1
0
        /// <summary>
        /// Converts shape of <see cref="Rect"/> to a List of List of <see cref="Point"/>
        /// </summary>
        public static List <List <Point> > ToShapePoints(this Rect rect)
        {
            var geoShapePoints = new List <List <Point> > {
                rect.ToPoints()
            };

            return(geoShapePoints);
        }
Ejemplo n.º 2
0
 public static List <Point> Corners(this Rect rect)
 {
     return(rect.ToPoints());
 }