Class DegreeMetric
Represents geographical coordinate unit (latitude or longitude) given as Degrees-Minutes-Seconds.
Inheritance
Namespace: Telerik.Windows.Controls.Map
Assembly: Telerik.Windows.Controls.DataVisualization.dll
Syntax
public sealed class DegreeMetric : ValueType
Constructors
DegreeMetric(Double)
Initializes a new instance of the DegreeMetric structure.
Declaration
public DegreeMetric(double number)
Parameters
System. Double representation of the geographical coordinate. |
Properties
Degrees
Get or sets Degrees.
Declaration
public int Degrees { get; set; }
Property Value
System.
|
Minutes
Get or sets Minutes.
Declaration
public int Minutes { get; set; }
Property Value
System.
|
Seconds
Get or sets Seconds.
Declaration
public double Seconds { get; set; }
Property Value
System.
|
Sign
Gets or sets sign of the metric. 1 - indicates that it is East for Longitude and North for Latitude. -1 - indicates that it is West for Longitude and South for Latitude.
Declaration
public int Sign { get; set; }
Property Value
System.
|
Methods
Equals(Object)
Compares two Degree
Declaration
public override bool Equals(object obj)
Parameters
System. The instance of Degree |
Returns
System. true if instances are equal; otherwise, false. |
Equals(DegreeMetric, DegreeMetric)
Compares two Degree
Declaration
public static bool Equals(DegreeMetric metric1, DegreeMetric metric2)
Parameters
Degree The instance of Degree |
Degree The instance of Degree |
Returns
System. true if instances are equal; otherwise, false. |
GetHashCode()
Gets a hash code for this Degree
Declaration
public override int GetHashCode()
Returns
System. A hash code for this Degree |
ToString()
Creates a String representation of this DegreeMetric object.
Declaration
public override string ToString()
Returns
System. A String containing the Degrees-Minutes-Seconds values of this DegreeMetric object. |
ToString(IFormatProvider)
Creates a String representation of this DegreeMetric object.
Declaration
public string ToString(IFormatProvider provider)
Parameters
System. The culture-specific formatting information. |
Returns
System. A String containing the Degrees-Minutes-Seconds values of this DegreeMetric object. |
Operators
Equality(DegreeMetric, DegreeMetric)
Compares two Degree
Declaration
public static bool operator ==(DegreeMetric metric1, DegreeMetric metric2)
Parameters
Degree The instance of Degree |
Degree The instance of Degree |
Returns
System. true if instances are equal; otherwise, false. |
Inequality(DegreeMetric, DegreeMetric)
Compares two Degree
Declaration
public static bool operator !=(DegreeMetric metric1, DegreeMetric metric2)
Parameters
Degree The instance of Degree |
Degree The instance of Degree |
Returns
System. true if instances are equal; otherwise, false. |