public override bool Equals(object obj) { DMS o = obj as DMS; if (o == null) { return(false); } return(IsPlus == o.IsPlus && Degree == o.Degree && Minute == o.Minute && Second == o.Second); }
/// <summary> /// 度小数到度.分秒 /// </summary> /// <param name="deg"></param> /// <returns></returns> public static double DegToD_ms(double deg) { DMS dms = new DMS(deg); return(dms.D_ms); }