The LatLonRange structure represents a geographic range of latitude and longitude angles.
struct
|
LatLonRange
|
implements
|
IEquatable<LatLonRange>
|
Wrap-around of longitude angles is handled properly. Latitude angles are implicitly clamped to [-90..90] degrees.
The serialization helper object for values of LatLonRange.
public
static
readonly
field
|
Serializer
|
||
type
|
ITypeSerializer<LatLonRange>
|
An undefined range of geographic coordinates.
public
static
readonly
field
|
Undefined
|
||
type
|
LatLonRange
|
Remarks:
This
value
can
be
used
as
the
initial
value
for
building
a
geographic
range
by
using
Grow
.
See also:
IsUndefinedEnd of the geographic range.
public
readonly
field
|
End
|
||
type
|
LatLon
|
Remarks:
The LatLon value will always be normalized (see Normalize).
Is this geographic range undefined?
public
property
|
IsUndefined
{
get
}
|
||
type
|
bool
|
||
value
|
true
if
the
range
is
undefined,
false
if
not. |
See also:
UndefinedReturns the size of the latitude range.
public
property
|
Latitude
{
get
}
|
||
type
|
float64
|
||
value
|
|
The latitude range. |
Returns the size of the longitude range.
public
property
|
Longitude
{
get
}
|
||
type
|
float64
|
||
value
|
|
The longitude range. |
Start of the geographic range.
public
readonly
field
|
Start
|
||
type
|
LatLon
|
Remarks:
The LatLon value will always be normalized (see Normalize).
Creates a new instance of LatLonRange which contains the given coordinates.
public
static
method
|
For
(LatLon latLon)
|
||
type
|
LatLonRange
|
||
params
|
latLon
|
The geographic coordinates. | |
returns
|
The geographic range. |
Creates a new instance of LatLonRange which contains the given coordinates.
public
static
method
|
For
(LatLon a,
LatLon b)
|
||
type
|
LatLonRange
|
||
params
|
a
|
The first geographic coordinates. | |
b
|
The second geographic coordinates. | ||
returns
|
The geographic range. |
Creates a new instance of LatLonRange which contains the given coordinates.
public
static
method
|
For
(float64 latitude,
float64 longitude)
|
||
type
|
LatLonRange
|
||
params
|
latitude
|
The latitude angle, in degrees. | |
longitude
|
The longitude angle, in degrees. | ||
returns
|
The geographic range. |
Creates a new instance of LatLonRange which contains the given coordinates.
public
static
method
|
For
(float64 latitudeA,
float64 longitudeA,
float64 latitudeB,
float64 longitudeB)
|
||
type
|
LatLonRange
|
||
params
|
latitudeA
|
The first latitude angle, in degrees. | |
longitudeA
|
The first longitude angle, in degrees. | ||
latitudeB
|
The second latitude angle, in degrees. | ||
longitudeB
|
The second longitude angle, in degrees. | ||
returns
|
The geographic range. |
[Pure]
|
||||
public
method
|
Contains
(LatLon latLon)
|
|||
type
|
bool
|
|||
params
|
latLon
|
[Pure]
|
||||
public
method
|
Contains
(float64 latitude,
float64 longitude)
|
|||
type
|
bool
|
|||
params
|
latitude
|
|||
longitude
|
public
method
|
Equals
(LatLonRange other)
|
||
type
|
bool
|
||
params
|
other
|
Grows this geographic range until it contains the given coordinates.
public
method
|
Grow
(LatLon latLon)
|
||
type
|
LatLonRange
|
||
params
|
latLon
|
The geographic coordinates to contain. | |
returns
|
The resulting geographic range. |
Remarks:
Undefined coordinate values will be ignored (see IsUndefinedCoordinate).
Grows this geographic range until it contains the given coordinates.
public
method
|
Grow
(float64 latitude,
float64 longitude)
|
||
type
|
LatLonRange
|
||
params
|
latitude
|
The latitude angle, in degrees. | |
longitude
|
The longitude angle, in degrees. | ||
returns
|
The resulting geographic range. |
Remarks:
Undefined coordinate values will be ignored (see IsUndefinedCoordinate).
public
override
method
|
ToString
()
|
||
type
|
string
|