Class Extensions
Contains extension methods for some OpenLR core stuff.
Inheritance
Inherited Members
Namespace: System.Dynamic.ExpandoObject
Assembly: cs.temp.dll.dll
Syntax
public static class ExtensionsMethods
AngleSmallestDifference(Single, Single)
Substracts the two angles returning an angle in the range -180, +180
Declaration
public static float AngleSmallestDifference(float angle1, float angle2)Parameters
| System.Single
        angle1 
 | 
| System.Single
        angle2 
 | 
Returns
| System.Single 
 | 
CopyTo<T>(T[], Int32, T[], Int32, Int32)
Copies elements from the list and the range into the given array starting at the given index.
Declaration
public static void CopyTo<T>(this T[] source, int index, T[] array, int arrayIndex, int count)Parameters
| T[]
        source The array to copy from. | 
| System.Int32
        index The start of the elements | 
| T[]
        array The array to copy to. | 
| System.Int32
        arrayIndex The index to start copying to in the array. | 
| System.Int32
        count The # of elements. | 
Type Parameters
| T 
 | 
Length(IEnumerable<Itinero.LocalGeo.Coordinate>)
Calculates the length of the shape formed by the given coordinates.
Declaration
public static float Length(this IEnumerable<Itinero.LocalGeo.Coordinate> enumerable)Parameters
| IEnumerable<Itinero.LocalGeo.Coordinate>
        enumerable 
 | 
Returns
| System.Single 
 | 
Length(ReferencedLine, RouterDb)
Converts the referenced point along the line location to features.
Declaration
public static float Length(this ReferencedLine referencedLine, RouterDb routerDb)Parameters
| ReferencedLine
        referencedLine 
 | 
| RouterDb
        routerDb 
 | 
Returns
| System.Single 
 | 
Length(ReferencedPointAlongLine, RouterDb)
Converts the referenced point along the line location to features.
Declaration
public static float Length(this ReferencedPointAlongLine referencedPointALongLineLocation, RouterDb routerDb)Parameters
| ReferencedPointAlongLine
        referencedPointALongLineLocation 
 | 
| RouterDb
        routerDb 
 | 
Returns
| System.Single 
 | 
Range<T>(T[], Int32, Int32)
Gets a specific range from the array and copies it to a new one.
Declaration
public static T[] Range<T>(this T[] source, int index, int count)Parameters
| T[]
        source The array to copy from. | 
| System.Int32
        index The start of the elements | 
| System.Int32
        count The # of elements. | 
Returns
| T[] 
 | 
Type Parameters
| T 
 | 
ToCoordinate(Itinero.LocalGeo.Coordinate)
Converts the given coordinate to and OpenLR coordinate.
Declaration
public static Coordinate ToCoordinate(this Itinero.LocalGeo.Coordinate coordinate)Parameters
| Itinero.LocalGeo.Coordinate
        coordinate 
 | 
Returns
| Coordinate 
 |