Show / Hide Table of Contents

Class BearingConvertor

Represents a bearing convertor that encodes/decodes into the binary OpenLR format.

Inheritance
System.Object
BearingConvertor
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: System.Dynamic.ExpandoObject
Assembly: cs.temp.dll.dll
Syntax
public static class BearingConvertor

Methods

Decode(Byte[], Int32)

Decodes a bearing from binary data.

Declaration
public static int Decode(byte[] data, int byteIndex)
Parameters
System.Byte[] data

The binary data.

System.Int32 byteIndex

The index of the data in the first byte.

Returns
System.Int32

Decode(Byte[], Int32, Int32)

Decodes a bearing from binary data.

Declaration
public static int Decode(byte[] data, int startIndex, int byteIndex)
Parameters
System.Byte[] data

The binary data.

System.Int32 startIndex

The index of the byte in data.

System.Int32 byteIndex

The index of the data in the given byte.

Returns
System.Int32

DecodeAngleFromBearing(Int32)

Decodes an angle from a bearing.

Declaration
public static int DecodeAngleFromBearing(int bearing)
Parameters
System.Int32 bearing

Returns
System.Int32

The angle represented by the bearing in the range [0-360[.

Encode(Int32, Byte[], Int32, Int32)

Encodes a bearing into binary data.

Declaration
public static void Encode(int bearing, byte[] data, int startIndex, int byteIndex)
Parameters
System.Int32 bearing

System.Byte[] data

System.Int32 startIndex

System.Int32 byteIndex

EncodeAngleToBearing(Int32)

Encodes an angle into a bearing.

Declaration
public static int EncodeAngleToBearing(int angleInDegrees)
Parameters
System.Int32 angleInDegrees

Returns
System.Int32

Remarks

7.3.3 in OpenLR whitepaper.

Back to top Built by Itinero, MIT licensed.