Firebase.Firestore.GeoPoint

Immutable struct representing a geographic location in Cloud Firestore.

Summary

Inheritance

Inherits from: IEquatable< GeoPoint >

Constructors and Destructors

GeoPoint(double latitude, double longitude)
Creates a new value using the provided latitude and longitude values.

Properties

Latitude
double
The latitude, in degrees, in the range -90 to 90 inclusive.
Longitude
double
The longitude, in degrees, in the range -180 to 180 inclusive.

Public functions

Equals(object obj)
override bool
Equals(GeoPoint other)
bool
GetHashCode()
override int
ToString()
override string

Public static functions

operator!=(GeoPoint lhs, GeoPoint rhs)
bool
Operator overload to compare two GeoPoint values for inequality.
operator==(GeoPoint lhs, GeoPoint rhs)
bool
Operator overload to compare two GeoPoint values for equality.

Properties

Latitude

double Firebase::Firestore::GeoPoint::Latitude

The latitude, in degrees, in the range -90 to 90 inclusive.

Longitude

double Firebase::Firestore::GeoPoint::Longitude

The longitude, in degrees, in the range -180 to 180 inclusive.

Public functions

Equals

override bool Firebase::Firestore::GeoPoint::Equals(
  object obj
)

Equals

bool Firebase::Firestore::GeoPoint::Equals(
  GeoPoint other
)

GeoPoint

 Firebase::Firestore::GeoPoint::GeoPoint(
  double latitude,
  double longitude
)

Creates a new value using the provided latitude and longitude values.

Details
Parameters
latitude
The latitude of the point in degrees, between -90 and 90 inclusive.
longitude
The longitude of the point in degrees, between -180 and 180 inclusive.

GetHashCode

override int Firebase::Firestore::GeoPoint::GetHashCode()

ToString

override string Firebase::Firestore::GeoPoint::ToString()

Public static functions

operator!=

bool Firebase::Firestore::GeoPoint::operator!=(
  GeoPoint lhs,
  GeoPoint rhs
)

Operator overload to compare two GeoPoint values for inequality.

Details
Parameters
lhs
Left value to compare
rhs
Right value to compare
Returns
false if lhs is equal to rhs ; otherwise true.

operator==

bool Firebase::Firestore::GeoPoint::operator==(
  GeoPoint lhs,
  GeoPoint rhs
)

Operator overload to compare two GeoPoint values for equality.

Details
Parameters
lhs
Left value to compare
rhs
Right value to compare
Returns
true if lhs is equal to rhs ; otherwise false.