22 #include <olp/core/CoreApi.h>
23 #include <olp/core/geo/Types.h>
24 #include <olp/core/geo/coordinates/GeoPoint.h>
83 double longitude_degrees);
174 explicit operator bool()
const;
192 static const double kNaN_;
A geographic location that uses the WGS84 Coordinate System.
Definition: GeoCoordinates.h:38
void SetLongitudeDegrees(double longitude_degrees)
Sets the longitude in degrees.
GeoCoordinates Normalized() const
Normalizes the latitude and longitude to the [-pi/2, pi/2] and [-pi, pi] ranges correspondingly.
GeoPoint ToGeoPoint() const
Converts the current coordinates to a geo point.
void SetLatitudeDegrees(double latitude_degrees)
Sets the latitude in degrees.
void SetLongitude(double longitude_radians)
Sets the longitude in radians.
void SetLatitude(double latitude_radians)
Sets the latitude in radians.
static GeoCoordinates FromDegrees(double latitude_degrees, double longitude_degrees)
Creates a GeoCoordinates instance from latitude and longitude.
GeoCoordinates()
Creates a GeoCoordinates instance with invalid coordinates.
static GeoCoordinates FromGeoPoint(const GeoPoint &geo_point)
Creates a GeoCoordinates instance from a geo point.
double GetLongitudeDegrees() const
Gets the WGS84 longitude in degrees.
double GetLatitude() const
Gets the WGS84 latitude in radians.
double GetLongitude() const
Gets the WGS84 longitude in radians.
double GetLatitudeDegrees() const
Gets the WGS84 latitude in degrees.
GeoCoordinates(double latitude_degrees, double longitude_degrees, DegreeType degrees)
Creates a GeoCoordinates instance from latitude and longitude.
GeoCoordinates(double latitude_radians, double longitude_radians)
Creates a GeoCoordinates instance from latitude and longitude.
bool IsValid() const
Checks whether the radian values of latitude and longitude are valid double numbers.
A geographic location that uses the WGS84 Coordinate System encoded in a 32-bit unsigned integer.
Definition: GeoPoint.h:48
Rules all the other namespaces.
Definition: AppleSignInProperties.h:24