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; }
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; }