AutoSharp.Utils.Positioning.GetTeamPolygon C# (CSharp) Method

GetTeamPolygon() static private method

Returns a polygon that contains each position of a team champion
static private GetTeamPolygon ( bool allyTeam = true ) : AutoSharp.Utils.Geometry.Polygon
allyTeam bool returns the polygon for ally team if true, enemy if false
return AutoSharp.Utils.Geometry.Polygon
        internal static Geometry.Polygon GetTeamPolygon(bool allyTeam = true)
        {
            var poly = new Geometry.Polygon();
            foreach (var v2 in allyTeam ? GetAllyPosList() : GetEnemyPosList())
            {
                poly.Add(v2);
            }
            poly.ToClipperPath();
            return poly;
        }