Class Location
Represents a geographical location.
Inheritance
Namespace: Telerik.Maui.Controls.ShapefileReader
Assembly: Telerik.Maui.Controls.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. The latitude. |
System. The longitude. |
Properties
Invalid
Gets a value that represents an invalid Location structure.
Declaration
public static Location Invalid { get; }
Property Value
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.
|
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.
|
Longitude
Gets or sets the longitude value of the location.
Declaration
public double Longitude { get; set; }
Property Value
System.
|
Methods
Equals(Object)
Determines whether the specified System.
Declaration
public override bool Equals(object obj)
Parameters
System. The System. |
Returns
System.
|
Equals(Location, Location)
Checks whether two Location values are equal.
Declaration
public static bool Equals(Location location1, Location location2)
Parameters
Returns
System.
|
GetHashCode()
Returns a hash code for this instance.
Declaration
public override int GetHashCode()
Returns
System. A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. |
ToString()
Returns a System.
Declaration
public override string ToString()
Returns
System. A System. |
Operators
Equality(Location, Location)
Checks whether two Location values are equal.
Declaration
public static bool operator ==(Location location1, Location location2)
Parameters
Returns
System.
|
Inequality(Location, Location)
Checks whether two Location values are not equal.
Declaration
public static bool operator !=(Location location1, Location location2)
Parameters
Returns
System.
|