Class Location
Represents a geographical location.
Inheritance
Namespace: Telerik.Maui.Controls.Compatibility.ShapefileReader
Assembly: Telerik.Maui.Controls.Compatibility.dll
Syntax
public sealed class Location : ValueType
Constructors
Location(Double, Double)
Initializes a new instance of the Location struct.
Declaration
public Location(double latitude, double longitude)
Parameters
System.Double
latitude
The latitude. |
System.Double
longitude
The longitude. |
Properties
Invalid
Gets a value that represents an invalid Location structure.
Declaration
public static Location Invalid { get; }
Property Value
Location
|
Remarks
A Location structure with Latitude and Longitude values set to 0 is not empty. An empty Location structure has Latitude and Longitude values set to negative infinity. This is the only time a Location structure can have negative infinity values.
IsEmpty
Gets a value that indicates whether this Location structure is empty.
Declaration
public bool IsEmpty { get; }
Property Value
System.Boolean
|
Remarks
A Location structure with Latitude and Longitude values set to 0 is not empty. An empty Location structure has Latitude and Longitude values set to negative infinity. This is the only time a Location structure can have negative infinity values.
Latitude
Gets or sets the latitude value of the location.
Declaration
public double Latitude { get; set; }
Property Value
System.Double
|
Longitude
Gets or sets the longitude value of the location.
Declaration
public double Longitude { get; set; }
Property Value
System.Double
|
Methods
Equals(Object)
Determines whether the specified System.Object is equal to this instance.
Declaration
public override bool Equals(object obj)
Parameters
System.Object
obj
The System.Object to compare with this instance. |
Returns
System.Boolean
|
Equals(Location, Location)
Checks whether two Location values are equal.
Declaration
public static bool Equals(Location location1, Location location2)
Parameters
Location
location1
|
Location
location2
|
Returns
System.Boolean
|
GetHashCode()
Returns a hash code for this instance.
Declaration
public override int GetHashCode()
Returns
System.Int32
A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. |
ToString()
Returns a System.String that represents this instance.
Declaration
public override string ToString()
Returns
System.String
A System.String that represents this instance. |
Operators
Equality(Location, Location)
Checks whether two Location values are equal.
Declaration
public static bool operator ==(Location location1, Location location2)
Parameters
Location
location1
|
Location
location2
|
Returns
System.Boolean
|
Inequality(Location, Location)
Checks whether two Location values are not equal.
Declaration
public static bool operator !=(Location location1, Location location2)
Parameters
Location
location1
|
Location
location2
|
Returns
System.Boolean
|