LeanCloud C# SDK
Loading...
Searching...
No Matches
Public Member Functions | Properties | List of all members
LeanCloud.Storage.LCGeoPoint Class Reference

LCGeoPoint represents a geographic location that may be associated with a key in a LCObject or used as a reference point for queries. More...

Public Member Functions

 LCGeoPoint (double latitude, double longtitude)
 Constructs a LCGeoPoint with the specified latitude and longitude.
 
double KilometersTo (LCGeoPoint point)
 Calculate the distance in kilometers between this point and another GeoPoint.
 
double MilesTo (LCGeoPoint point)
 Calculate the distance in miles between this point and another GeoPoint.
 
double RadiansTo (LCGeoPoint point)
 Calculate the distance in radians between this point and another GeoPoint.
 

Properties

double Latitude [get]
 Gets the latitude of the LCGeoPoint.
 
double Longitude [get]
 Gets the longitude of the LCGeoPoint.
 
static LCGeoPoint Origin [get]
 The original LCGeoPoint.
 

Detailed Description

LCGeoPoint represents a geographic location that may be associated with a key in a LCObject or used as a reference point for queries.

Constructor & Destructor Documentation

◆ LCGeoPoint()

LeanCloud.Storage.LCGeoPoint.LCGeoPoint ( double  latitude,
double  longtitude 
)
inline

Constructs a LCGeoPoint with the specified latitude and longitude.

Parameters
latitude
longtitude

Member Function Documentation

◆ KilometersTo()

double LeanCloud.Storage.LCGeoPoint.KilometersTo ( LCGeoPoint  point)
inline

Calculate the distance in kilometers between this point and another GeoPoint.

Parameters
point
Returns

◆ MilesTo()

double LeanCloud.Storage.LCGeoPoint.MilesTo ( LCGeoPoint  point)
inline

Calculate the distance in miles between this point and another GeoPoint.

Parameters
point
Returns

◆ RadiansTo()

double LeanCloud.Storage.LCGeoPoint.RadiansTo ( LCGeoPoint  point)
inline

Calculate the distance in radians between this point and another GeoPoint.

Parameters
point
Returns

Property Documentation

◆ Latitude

double LeanCloud.Storage.LCGeoPoint.Latitude
get

Gets the latitude of the LCGeoPoint.

◆ Longitude

double LeanCloud.Storage.LCGeoPoint.Longitude
get

Gets the longitude of the LCGeoPoint.

◆ Origin

LCGeoPoint LeanCloud.Storage.LCGeoPoint.Origin
staticget

The original LCGeoPoint.


The documentation for this class was generated from the following file: