Class GeoCircle
Represents a circle on the surface of a sphere for a geospatial GeoWithin(IEmbeddedObject?, GeoShapeBase) query.
Namespace: Realms
Assembly: Realm.dll
Syntax
public class GeoCircle : GeoShapeBase
Constructors
| Edit this page View SourceGeoCircle(GeoPoint, Distance)
Initializes a new instance of the GeoCircle class.
Declaration
public GeoCircle(GeoPoint center, Distance radius)
Parameters
Type | Name | Description |
---|---|---|
GeoPoint | center | The center of the circle. |
Distance | radius | The radius of the circle. |
GeoCircle(GeoPoint, double)
Initializes a new instance of the GeoCircle class.
Declaration
public GeoCircle(GeoPoint center, double radiusInRadians)
Parameters
Type | Name | Description |
---|---|---|
GeoPoint | center | The center of the circle. |
double | radiusInRadians | The radius of the circle in radians. |
Properties
| Edit this page View SourceCenter
Gets the center of the circle.
Declaration
public GeoPoint Center { get; }
Property Value
Type | Description |
---|---|
GeoPoint | The circle's center. |
Radius
Gets the radius of the circle in radians.
Declaration
public double Radius { get; }
Property Value
Type | Description |
---|---|
double | The circle's radius. |
Methods
| Edit this page View SourceToString()
Returns a string representation of the value.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string | A string representation of the value. |