/// <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); }
public static List <Point> Corners(this Rect rect) { return(rect.ToPoints()); }