Class DirectionType
Contains the horizontal and vertical components of an orientation or a heading. See RFC 5962
Implements
Inherited Members
Namespace: Pidf
Assembly: Ng911Lib.dll
Syntax
public class DirectionType : IXmlSerializable
  Constructors
| Edit this page View SourceDirectionType()
Default constructor
Declaration
public DirectionType()
  DirectionType(double)
Constructs a DirectionType with only a horizontal component.
Declaration
public DirectionType(double horizontal)
  Parameters
| Type | Name | Description | 
|---|---|---|
| double | horizontal | Horizontal component in decimal degrees  | 
      
DirectionType(double, double)
Constructs a DirectionType with a horizontal and a vertical component
Declaration
public DirectionType(double horizontal, double vertical)
  Parameters
| Type | Name | Description | 
|---|---|---|
| double | horizontal | Horizontal component in decimal degrees  | 
      
| double | vertical | Vertical elevation angle in decimal degrees  | 
      
Properties
| Edit this page View SourceHorizontal
Gets or sets the horizontal component. Units are in decimal degrees. Horizontal angles are measured from Northing to Easting. Horizontal angles start from zero when pointing to or travelling towards the North and increase towards the East.
Declaration
public double Horizontal { get; set; }
  Property Value
| Type | Description | 
|---|---|
| double | 
Vertical
Gets or sets the vertical elevation from the local horizontal plane. Units are in decimal degrees.
Declaration
public double Vertical { get; set; }
  Property Value
| Type | Description | 
|---|---|
| double | 
Methods
| Edit this page View SourceGetSchema()
IXmlSerializable.GetSchema(). Not used. Always returns null.
Declaration
public XmlSchema GetSchema()
  Returns
| Type | Description | 
|---|---|
| XmlSchema | Returns null  | 
      
ReadXml(XmlReader)
Implementation of the IXmlSerializable.ReadXml method that is called when de-serializing.
Declaration
public void ReadXml(XmlReader reader)
  Parameters
| Type | Name | Description | 
|---|---|---|
| XmlReader | reader | Source of the inner XML to use.  | 
      
WriteXml(XmlWriter)
Implementation of the IXmlSerializable.WriteXml method that is called when serializing.
Declaration
public void WriteXml(XmlWriter writer)
  Parameters
| Type | Name | Description | 
|---|---|---|
| XmlWriter | writer | Destination for the inner XML.  |