Skip to content

Commit

Permalink
Mainly cosmetic changes
Browse files Browse the repository at this point in the history
  • Loading branch information
zizwiz committed Mar 12, 2024
1 parent cdcc33d commit 7803302
Show file tree
Hide file tree
Showing 6 changed files with 3,130 additions and 2,961 deletions.
Binary file modified .vs/GlobalData/v16/.suo
Binary file not shown.
509 changes: 351 additions & 158 deletions GlobalData/Form1.Designer.cs

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions GlobalData/Form1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ private void Form1_Load(object sender, EventArgs e)
{
Text += " : v" + Assembly.GetExecutingAssembly().GetName().Version; // put in the version number

//Set up the Great Circle Distance, Bearing and midpoint tab
rdo_GC_DBM_origin_decimal_degrees.Checked = true;
rdo_GC_DBM_destination_DMS.Checked = true;

//Set up the Great Circle Find Distance tab
rdo_FD_origin_longitude_decimal_degrees.Checked = true;
rdo_FD_origin_latitude_decimal_degrees.Checked = true;
Expand All @@ -37,5 +41,7 @@ private void btn_help_about_Click(object sender, EventArgs e)
var f1 = new Help_Form();
f1.ShowDialog();
}


}
}
12 changes: 6 additions & 6 deletions GlobalData/GC_DistanceBearingMidpoint.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ private void btn_gc_clear_Click(object sender, EventArgs e)

private void btn_compute_distance_Click(object sender, EventArgs e)
{
Double result = GreatCircle.Distance(txtbx_origin_longitude.Text, txtbx_origin_latitude.Text,
txtbx_dest_longitude.Text, txtbx_dest_latitude.Text);
Double result = GreatCircle.Distance(txtbx_GC_DBM_origin_longitude.Text, txtbx_GC_DBM_origin_latitude.Text,
txtbx_GC_DBM_dest_longitude.Text, txtbx_GC_DBM_dest_latitude.Text);

rchtxbx_output.AppendText("\rDistance = " + Math.Round(result, 4) + "m\r");
rchtxbx_output.AppendText("Distance = " + Math.Round(result / 1000, 4) + "km\r");
Expand All @@ -26,8 +26,8 @@ private void btn_compute_distance_Click(object sender, EventArgs e)
private void btn_initial_bearing_Click(object sender, EventArgs e)
{

var results = GreatCircle.InitialBearing(txtbx_origin_longitude.Text, txtbx_origin_latitude.Text,
txtbx_dest_longitude.Text, txtbx_dest_latitude.Text);
var results = GreatCircle.InitialBearing(txtbx_GC_DBM_origin_longitude.Text, txtbx_GC_DBM_origin_latitude.Text,
txtbx_GC_DBM_dest_longitude.Text, txtbx_GC_DBM_dest_latitude.Text);

rchtxbx_output.AppendText("\rForward bearing decimal = " + Math.Round(results.Item1, 4) + "° " + results.Item2);
rchtxbx_output.AppendText("\rForward bearing dms = " + Convertion.toDegreesMinutesSecondsFromDecimalDegrees(results.Item1.ToString()) + " " + results.Item2 + "\r");
Expand All @@ -38,8 +38,8 @@ private void btn_initial_bearing_Click(object sender, EventArgs e)

private void btn_compute_midpoint_Click(object sender, EventArgs e)
{
var results = GreatCircle.MidPoint(txtbx_origin_longitude.Text, txtbx_origin_latitude.Text,
txtbx_dest_longitude.Text, txtbx_dest_latitude.Text);
var results = GreatCircle.MidPoint(txtbx_GC_DBM_origin_longitude.Text, txtbx_GC_DBM_origin_latitude.Text,
txtbx_GC_DBM_dest_longitude.Text, txtbx_GC_DBM_dest_latitude.Text);


rchtxbx_output.AppendText("\rLatitude = " + Math.Round(results.Item1, 4) + "°");
Expand Down
Loading

0 comments on commit 7803302

Please sign in to comment.