Beispiel #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;
            }
        }
Beispiel #2
0
 public double GetGradian()
 {
     return(AngleConversion.RadianToGradian(_dAngle));
 }
Beispiel #3
0
 public double GetDegree()
 {
     return(AngleConversion.RadianToDegree(_dAngle));
 }