LatLonRange
Description
- Derived from
The LatLonRange structure represents a geographic range of latitude and longitude angles.
Wrap-around of longitude angles is handled properly, interpreting -180 and +180 as the same value (see LatLon.NormalizeLongitude180). Latitude angles are implicitly clamped to [-90..90] degrees (see LatLon.NormalizeLatitude).
Public / Constants
Undefined
An undefined range of geographic coordinates.
This value can be used as the initial value for building a geographic range by using Grow1.
- See also
Public / Constructors
For
4 overloads
Creates a new instance of LatLonRange which contains the given coordinates.
Creates a new instance of LatLonRange which contains the given coordinates.
Creates a new instance of LatLonRange which contains the given coordinates.
Creates a new instance of LatLonRange which contains the given coordinates.
Public / Methods
Contains
2 overloads
Checks if this range contains the given coordinates.
Checks if this range contains the given coordinates.
Flip
Flips the longitude range.
The LatLon.Longitude values of Start and End are swapped, which changes Longitude into 360 - Longitude.
Grow
3 overloads
Grows this geographic range until it contains the given coordinates.
The longitude range grows along the direction that produces the shorter length. Undefined coordinate values will be ignored (see LatLon.IsUndefinedCoordinate).
- See also
Grows this geographic range until it contains the given range.
The longitude range grows along the direction that produces the shorter length.
- See also
Grows this geographic range until it contains the given coordinates.
The longitude range grows along the direction that produces the shorter length. Undefined coordinate values will be ignored (see LatLon.IsUndefinedCoordinate).
- See also
Public / Attributes
End
End of the geographic range.
The LatLon value will always be normalized (see LatLon.Normalize). From the end, the longitude range extends westwards towards Start, wrapping at +/- 180 degrees.
Start
Start of the geographic range.
The LatLon value will always be normalized (see LatLon.Normalize). From the start, the longitude range extends eastwards towards End, wrapping at +/- 180 degrees.