/// <summary> /// Returns if the angle is Right /// </summary> /// <param name="angle"></param> /// <returns></returns> public static bool IsRight(PlaneAngle angle) { return((UnitConverter.ConvertMeasure(angle, PlaneAngleUnit.Degree).value % 360) == 90); }
/// <summary> /// Returns if the angle is obtuse (Greater than Right angle but smaller than Straight) /// </summary> /// <param name="angle"></param> /// <returns></returns> public static bool IsObtuse(PlaneAngle angle) { double val = UnitConverter.ConvertMeasure(angle, PlaneAngleUnit.Degree).value % 360; return(val > 90 & val < 180); }
/// <summary> /// Returns if the angle is Null /// </summary> /// <param name="angle"></param> /// <returns></returns> public static bool IsNull(PlaneAngle angle) { return(angle.value == 0); }
/// <summary> /// Returns if the angle is Greater than Full angle /// </summary> /// <param name="angle"></param> /// <returns></returns> public static bool IsMoreThanFullAngle(PlaneAngle angle) { return(UnitConverter.ConvertMeasure(angle, PlaneAngleUnit.Degree).value > 360); }
/// <summary> /// Returns if the angle is Full angle /// </summary> /// <param name="angle"></param> /// <returns></returns> public static bool IsFullAngle(PlaneAngle angle) { return(UnitConverter.ConvertMeasure(angle, PlaneAngleUnit.Degree).value % 360 == 0 && !(angle.value == 0)); }
/// <summary> /// Returns if the angle is obtuse (Greater than Right angle but smaller than Straight) /// </summary> /// <param name="angle"></param> /// <returns></returns> public static bool IsReflex(PlaneAngle angle) { double val = UnitConverter.ConvertMeasure(angle, PlaneAngleUnit.Degree).value % 360; return(val > 180 & val < 360); }
/// <summary> /// Returns if the angle is Straight /// </summary> /// <param name="angle"></param> /// <returns></returns> public static bool IsStraight(PlaneAngle angle) { return(UnitConverter.ConvertMeasure(angle, PlaneAngleUnit.Degree).value % 360 == 180); }