TINMAN 3D / REALTIME TERRAIN
Software Development Kit - User Manual

struct LatLonRange in Tinman.Terrain.Georef

The LatLonRange structure represents a geographic range of latitude and longitude angles.

struct LatLonRange implements IEquatable<LatLonRange>

Remarks

Wrap-around of longitude angles is handled properly. Latitude angles are implicitly clamped to [-90..90] degrees.

Serialization

Serializer

The serialization helper object for values of LatLonRange.

public static readonly field Serializer
type ITypeSerializer<LatLonRange>

Public / Constants

Undefined

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:

IsUndefined

Public / Attributes

End

End of the geographic range.

public readonly field End
type LatLon

Remarks:

The LatLon value will always be normalized (see Normalize).

IsUndefined

Is this geographic range undefined?

public property IsUndefined { get }
type bool
value true if the range is undefined, false if not.

See also:

Undefined

Latitude

Returns the size of the latitude range.

public property Latitude { get }
type float64
value [0..180] The latitude range.

Longitude

Returns the size of the longitude range.

public property Longitude { get }
type float64
value [0..360] The longitude range.

Start

Start of the geographic range.

public readonly field Start
type LatLon

Remarks:

The LatLon value will always be normalized (see Normalize).

Public / Constructors

For

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.

Public / Methods

Contains

[Pure]
public method Contains (LatLon latLon)
type bool
params latLon

[Pure]
public method Contains (float64 latitude, float64 longitude)
type bool
params latitude
  longitude

Equals

public method Equals (LatLonRange other)
type bool
params other

Grow

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).

ToString

public override method ToString ()
type string