示例#1
0
        public Angle(double dAngle = 0.0, EnumAngleType eAngleType = EnumAngleType.Radian)
        {
            switch (eAngleType)
            {
            case EnumAngleType.Radian:
                _dAngle = dAngle;
                break;

            case EnumAngleType.Degree:
                _dAngle = AngleConversion.DegreeToRadian(dAngle);
                break;

            case EnumAngleType.Gradian:
                _dAngle = AngleConversion.GradianToRadian(dAngle);
                break;
            }
        }
示例#2
0
 public double GetGradian()
 {
     return(AngleConversion.RadianToGradian(_dAngle));
 }
示例#3
0
 public double GetDegree()
 {
     return(AngleConversion.RadianToDegree(_dAngle));
 }