public double GetConvertedValAngle(double value, string from, string to) { UnitsReflectionHelper <UnitAngle> helper = new UnitsReflectionHelper <UnitAngle>(); UnitAngle unitFrom = helper.GetUnit(from); UnitAngle unitTo = helper.GetUnit(to); return(new Angle(value, unitFrom).GetConvertedVal(unitTo)); }
public ElevationAngle(double val, UnitAngle unit) : base(val, unit) { if (this > new ElevationAngle(ElevationAngleTypes.Right).RoundVal(12)) { throw new InvalidElevationAngleException(BuidRightAngleExceptionMessage()); } CheckValueWithException(CheckValueCompareWithZero.LargerOrEqualToZero, "An elevation angle must be larger or equal to zero"); }
public new ElevationAngle Convert(UnitAngle to) { base.Convert(to); return(this); }
public Angle Convert(UnitAngle to) { base.Convert(to); return(this); }
public Angle(double val, UnitAngle unit) : base(val, unit) { }