This document is archived and information here might be outdated. Recommended version. |
Retrieves the cost value for a given origin and destination. The attribute index is with respect to the array of cost attribute names returned by CostAttributeNames.
[Visual Basic .NET] Public Function get_Value ( _ ByVal originIndex As Integer, _ ByVal destinationIndex As Integer, _ ByVal attributeIndex As Integer _ ) As Double
[C#] public double get_Value ( int originIndex, int destinationIndex, int attributeIndex );
[C++]
HRESULT get_Value(
long originIndex,
long destinationIndex,
long attributeIndex,
System.Double* Value
);
[C++]
Parameters originIndex [in]
originIndex is a parameter of type long destinationIndex [in]
destinationIndex is a parameter of type long attributeIndex [in]
attributeIndex is a parameter of type long Value [out, retval]
Value is a parameter of type double*
This returns a value of the matrix entry for a given origin, destination, and cost attribute. The cost attribute is specified as an index based on the cost attributes names.