protected virtual void SetCompactness(ISectionAngle ang, ISteelMaterial Material, AngleOrientation AngleOrientation)
           {

  
                   double shortLeg;
                   double longLeg;

                   if (ang.d >= ang.b)
                   {
                       longLeg = ang.d;
                       shortLeg = ang.b;
                   }
                   else
                   {
                       longLeg = ang.b;
                       shortLeg = ang.d;
                   }

                   //make differentiation based on angle orientation

                   if (AngleOrientation == AngleOrientation.LongLegVertical)
                   {
                       FlangeCompactness = new LegOfSingleAngle(Material, shortLeg, ang.t);
                       WebCompactness = new LegOfSingleAngle(Material, longLeg, ang.t);
                   }
                   else
                   {
                       FlangeCompactness = new LegOfSingleAngle(Material, longLeg, ang.t);
                       WebCompactness = new LegOfSingleAngle(Material, shortLeg, ang.t);
                   }

               }
            protected virtual void SetCompactness(ISectionAngle ang, ISteelMaterial Material, AngleOrientation AngleOrientation)
            {
                double shortLeg;
                double longLeg;

                if (ang.d >= ang.b)
                {
                    longLeg  = ang.d;
                    shortLeg = ang.b;
                }
                else
                {
                    longLeg  = ang.b;
                    shortLeg = ang.d;
                }

                //make differentiation based on angle orientation

                if (AngleOrientation == AngleOrientation.LongLegVertical)
                {
                    FlangeCompactness = new LegOfSingleAngle(Material, shortLeg, ang.t);
                    WebCompactness    = new LegOfSingleAngle(Material, longLeg, ang.t);
                }
                else
                {
                    FlangeCompactness = new LegOfSingleAngle(Material, longLeg, ang.t);
                    WebCompactness    = new LegOfSingleAngle(Material, shortLeg, ang.t);
                }
            }