// Token: 0x0600048F RID: 1167 RVA: 0x00016D5C File Offset: 0x00014F5C
        public static AxisAlignedBox2 ComputeAxisAlignedBoundingBox(this EllipticArc2 ellipticArc)
        {
            double radians;
            double radians2;
            double radians3;
            double radians4;
            double num;
            double num2;
            double num3;
            double num4;

            EllipseExtensionMethods.ComputeEllipseBoundingBoxVariables(ellipticArc.Ellipse, out radians, out radians2, out radians3, out radians4, out num, out num2, out num3, out num4);
            Vector2 startPoint = ellipticArc.StartPoint;
            Vector2 endPoint   = ellipticArc.EndPoint;

            if (!ellipticArc.Contains(Angle.FromRadians(radians)))
            {
                num = ((num < num2) ? Math.Min(startPoint.X, endPoint.X) : Math.Max(startPoint.X, endPoint.X));
            }
            if (!ellipticArc.Contains(Angle.FromRadians(radians2)))
            {
                num2 = ((num2 < num) ? Math.Min(startPoint.X, endPoint.X) : Math.Max(startPoint.X, endPoint.X));
            }
            if (!ellipticArc.Contains(Angle.FromRadians(radians3)))
            {
                num3 = ((num3 < num4) ? Math.Min(startPoint.Y, endPoint.Y) : Math.Max(startPoint.Y, endPoint.Y));
            }
            if (!ellipticArc.Contains(Angle.FromRadians(radians4)))
            {
                num4 = ((num4 < num3) ? Math.Min(startPoint.Y, endPoint.Y) : Math.Max(startPoint.Y, endPoint.Y));
            }
            return(new AxisAlignedBox2(Math.Min(num, num2), Math.Max(num, num2), Math.Min(num3, num4), Math.Max(num3, num4)));
        }
        // Token: 0x0600048E RID: 1166 RVA: 0x00016D10 File Offset: 0x00014F10
        public static AxisAlignedBox2 ComputeAxisAlignedBoundingBox(this Ellipse2 ellipse)
        {
            double num;
            double num2;
            double num3;
            double num4;
            double val;
            double val2;
            double val3;
            double val4;

            EllipseExtensionMethods.ComputeEllipseBoundingBoxVariables(ellipse, out num, out num2, out num3, out num4, out val, out val2, out val3, out val4);
            return(new AxisAlignedBox2(Math.Min(val, val2), Math.Max(val, val2), Math.Min(val3, val4), Math.Max(val3, val4)));
        }