Ejemplo n.º 1
0
        public GpsCoordinate(GpsCoordinate.LongitudeRef longitudeRef, double degrees, double minutes)
        {
            this.latOrLon = LatOrLons.Longitude;
            this.SetCoordinate(degrees, minutes, 0);

            this.Numeric = longitudeRef == LongitudeRef.East ? this.Numeric : -this.Numeric;
        }
Ejemplo n.º 2
0
        public GpsCoordinate(GpsCoordinate.LongitudeRef longitudeRef, double numeric)
        {
            if (Math.Abs(numeric) != numeric)
            {
                throw new Exception("Numeric should only be positive, use reference to specific direction");
            }

            this.latOrLon = LatOrLons.Longitude;
            this.Numeric  = longitudeRef == LongitudeRef.East ? numeric : -numeric;
        }