File: D_Position_Type.cs

package info (click to toggle)
quickroute-gps 2.5-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 19,576 kB
  • sloc: cs: 74,488; makefile: 72; sh: 43
file content (27 lines) | stat: -rw-r--r-- 554 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
using System;

namespace QuickRoute.GPSDeviceReaders.GarminUSBReader
{
  [Serializable]
  public class D_Position_Type
  {
    public int Latitude { get; set; }

    public int Longitude { get; set; }

    #region Derived properties
    
    public double LatitudeAsDegrees
    {
      get { return Latitude * (180 / Math.Pow(2, 31)); }
      set { throw new NotImplementedException(); }
    }

    public double LongitudeAsDegrees
    {
      get { return Longitude * (180 / Math.Pow(2, 31)); }
    }

    #endregion
  }
}