public DD ToDD() { DD result = new DD(); decimal degrees = this._degrees; decimal minutes = this._minutes; decimal seconds = this._seconds; if ((this._quadrasphere == Quadrasphere.North) || (this._quadrasphere == Quadrasphere.East)) { result.Degrees = (degrees + minutes / 60) + (seconds / 3600); if (this._quadrasphere == Quadrasphere.North) { result.DDType = DDType.Latitude; } else { result.DDType = DDType.Longitude; } } else if ((this._quadrasphere == Quadrasphere.South) || (this._quadrasphere == Quadrasphere.West)) { result.Degrees = Math.Abs((degrees + minutes / 60) + (seconds / 3600)) * (-1); result.DDType = DDType.Longitude; if (this._quadrasphere == Quadrasphere.South) { result.DDType = DDType.Latitude; } else { result.DDType = DDType.Longitude; } } return(result); }
public LatLng(DMS Latitude, DMS Longitude) { this._latitude = Latitude.ToDD (); this._longitude = Longitude.ToDD (); }
public LatLng(DD Latitude, DD Longitude) { this._latitude = Latitude; this._longitude = Longitude; }
public LatLng(Decimal Latitude, Decimal Longitude) { this._latitude = new DD (Latitude, DDType.Latitude); this._longitude = new DD (Longitude, DDType.Longitude); }
public LatLng() { this._latitude = new DD (); this._longitude = new DD (); }
public LatLng(DMS Latitude, DMS Longitude) { this._latitude = Latitude.ToDD(); this._longitude = Longitude.ToDD(); }
public LatLng(Decimal Latitude, Decimal Longitude) { this._latitude = new DD(Latitude, DDType.Latitude); this._longitude = new DD(Longitude, DDType.Longitude); }
public LatLng() { this._latitude = new DD(); this._longitude = new DD(); }
public DD ToDD() { DD result = new DD (); decimal degrees = this._degrees; decimal minutes = this._minutes; decimal seconds = this._seconds; if ((this._quadrasphere == Quadrasphere.North) || (this._quadrasphere == Quadrasphere.East)) { result.Degrees = (degrees + minutes / 60) + (seconds / 3600); if (this._quadrasphere == Quadrasphere.North) { result.DDType = DDType.Latitude; } else { result.DDType = DDType.Longitude; } } else if ((this._quadrasphere == Quadrasphere.South) || (this._quadrasphere == Quadrasphere.West)) { result.Degrees = Math.Abs ((degrees + minutes / 60) + (seconds / 3600)) * (-1); result.DDType = DDType.Longitude; if (this._quadrasphere == Quadrasphere.South) { result.DDType = DDType.Latitude; } else { result.DDType = DDType.Longitude; } } return result; }