Show / Hide Table of Contents

Class Extensions

Contains extension methods related to the weight matrix algorithms.

Inheritance
System.Object
Extensions
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 Extensions

Methods

IsInError<T>(IDirectedWeightMatrixAlgorithm<T>, Int32)

Returns true if the point at the given original location index is in error.

Declaration
public static bool IsInError<T>(this IDirectedWeightMatrixAlgorithm<T> algorithm, int locationIdx)
Parameters
IDirectedWeightMatrixAlgorithm<T> algorithm

System.Int32 locationIdx

Returns
System.Boolean

Type Parameters
T

IsInError<T>(IWeightMatrixAlgorithm<T>, Int32)

Returns true if the point at the given original location index is in error.

Declaration
public static bool IsInError<T>(this IWeightMatrixAlgorithm<T> algorithm, int locationIdx)
Parameters
IWeightMatrixAlgorithm<T> algorithm

System.Int32 locationIdx

Returns
System.Boolean

Type Parameters
T

OriginalLocationIndex<T>(IDirectedWeightMatrixAlgorithm<T>, Int32)

Gets the orginal location index for the given corrected routerpoint index.

Declaration
public static int OriginalLocationIndex<T>(this IDirectedWeightMatrixAlgorithm<T> algorithm, int correctedIdx)
Parameters
IDirectedWeightMatrixAlgorithm<T> algorithm

System.Int32 correctedIdx

Returns
System.Int32

Type Parameters
T

OriginalLocationIndex<T>(IWeightMatrixAlgorithm<T>, Int32)

Gets the orginal location index for the given corrected routerpoint index.

Declaration
public static int OriginalLocationIndex<T>(this IWeightMatrixAlgorithm<T> algorithm, int correctedIdx)
Parameters
IWeightMatrixAlgorithm<T> algorithm

System.Int32 correctedIdx

Returns
System.Int32

Type Parameters
T

ToEdgePathsDirectedFixed<T>(RouterPoint, RouterDb, WeightHandler<T>, Boolean)

Converts the router point to paths leading to the closest 2 vertices always returning the backward path first, forward path second.

Declaration
public static EdgePath<T>[] ToEdgePathsDirectedFixed<T>(this RouterPoint point, RouterDb routerDb, WeightHandler<T> weightHandler, bool asSource)where T : struct
Parameters
RouterPoint point

RouterDb routerDb

WeightHandler<T> weightHandler

System.Boolean asSource

Returns
EdgePath<T>[]

Type Parameters
T

TryGetError<T>(IDirectedWeightMatrixAlgorithm<T>, Int32, out LocationError, out RouterPointError)

Tries to get an error for the given original location index.

Declaration
public static bool TryGetError<T>(this IDirectedWeightMatrixAlgorithm<T> algorithm, int locationIdx, out LocationError locationError, out RouterPointError routerPointError)
Parameters
IDirectedWeightMatrixAlgorithm<T> algorithm

System.Int32 locationIdx

LocationError locationError

RouterPointError routerPointError

Returns
System.Boolean

Type Parameters
T

TryGetError<T>(IWeightMatrixAlgorithm<T>, Int32, out LocationError, out RouterPointError)

Tries to get an error for the given original location index.

Declaration
public static bool TryGetError<T>(this IWeightMatrixAlgorithm<T> algorithm, int locationIdx, out LocationError locationError, out RouterPointError routerPointError)
Parameters
IWeightMatrixAlgorithm<T> algorithm

System.Int32 locationIdx

LocationError locationError

RouterPointError routerPointError

Returns
System.Boolean

Type Parameters
T

WeightIndex<T>(IDirectedWeightMatrixAlgorithm<T>, Int32)

Gets the index in the weight matrix, given the orginal location index.

Declaration
public static int WeightIndex<T>(this IDirectedWeightMatrixAlgorithm<T> algorithm, int locationIdx)
Parameters
IDirectedWeightMatrixAlgorithm<T> algorithm

System.Int32 locationIdx

Returns
System.Int32

Type Parameters
T

WeightIndex<T>(IWeightMatrixAlgorithm<T>, Int32)

Gets the index in the weight matrix, given the orginal location index.

Declaration
public static int WeightIndex<T>(this IWeightMatrixAlgorithm<T> algorithm, int locationIdx)
Parameters
IWeightMatrixAlgorithm<T> algorithm

System.Int32 locationIdx

Returns
System.Int32

Type Parameters
T

Back to top Built by Itinero, MIT licensed.