MapRegion
A rectangular map extent, a center coordinate plus its span in degrees.
- Kind: Record struct
- Namespace: SkeleKit
- Implements:
IEquatable<MapRegion>
Constructors
Initializes a new instance of the MapRegion struct.
| Parameter | Summary |
|---|---|
Coordinate Center | The coordinate at the middle of the extent. |
double LatitudeSpan | The north-south height in degrees. |
double LongitudeSpan | The east-west width in degrees. |
Properties
Center
The coordinate at the middle of the extent.
Type: Coordinate
LatitudeSpan
The north-south height in degrees.
Type: double
LongitudeSpan
The east-west width in degrees.
Type: double
Methods
FromRadius
Builds a region spanning roughly the given radius in meters around a center.
| Parameter | Summary |
|---|---|
Coordinate center | The coordinate at the middle of the region. |
double radiusMeters | The distance from the center to each edge, in meters. |
Returns
MapRegion: A region whose span covers the radius on both axes.