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
number
Double representation of the geographical coordinate. |
Properties
Degrees
Get or sets Degrees.
Declaration
public int Degrees { get; set; }
Property Value
System.Int32
|
Minutes
Get or sets Minutes.
Declaration
public int Minutes { get; set; }
Property Value
System.Int32
|
Seconds
Get or sets Seconds.
Declaration
public double Seconds { get; set; }
Property Value
System.Double
|
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.Int32
|
Methods
Equals(Object)
Compares two DegreeMetric structures for equality.
Declaration
public override bool Equals(object obj)
Parameters
System.Object
obj
The instance of DegreeMetric to compare to this instance. |
Returns
System.Boolean
true if instances are equal; otherwise, false. |
Equals(DegreeMetric, DegreeMetric)
Compares two DegreeMetric structures for equality.
Declaration
public static bool Equals(DegreeMetric metric1, DegreeMetric metric2)
Parameters
DegreeMetric
metric1
The instance of DegreeMetric to compare. |
DegreeMetric
metric2
The instance of DegreeMetric to compare. |
Returns
System.Boolean
true if instances are equal; otherwise, false. |
GetHashCode()
Gets a hash code for this DegreeMetric structure.
Declaration
public override int GetHashCode()
Returns
System.Int32
A hash code for this DegreeMetric structure. |
ToString()
Creates a String representation of this DegreeMetric object.
Declaration
public override string ToString()
Returns
System.String
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.IFormatProvider
provider
The culture-specific formatting information. |
Returns
System.String
A String containing the Degrees-Minutes-Seconds values of this DegreeMetric object. |
Operators
Equality(DegreeMetric, DegreeMetric)
Compares two DegreeMetric structures for equality.
Declaration
public static bool operator ==(DegreeMetric metric1, DegreeMetric metric2)
Parameters
DegreeMetric
metric1
The instance of DegreeMetric to compare. |
DegreeMetric
metric2
The instance of DegreeMetric to compare. |
Returns
System.Boolean
true if instances are equal; otherwise, false. |
Inequality(DegreeMetric, DegreeMetric)
Compares two DegreeMetric structures for inequality.
Declaration
public static bool operator !=(DegreeMetric metric1, DegreeMetric metric2)
Parameters
DegreeMetric
metric1
The instance of DegreeMetric to compare. |
DegreeMetric
metric2
The instance of DegreeMetric to compare. |
Returns
System.Boolean
true if instances are equal; otherwise, false. |