setScaleFactorForCost method

void setScaleFactorForCost(
  1. {required String attributeName,
  2. required double scaleFactor}
)

Sets scale factor for cost.

Parameters:

  • attributeName — The name of attribute.
  • scaleFactor — The scale factor for cost.

Implementation

void setScaleFactorForCost(
    {required String attributeName, required double scaleFactor}) {
  final coreAttributeName = _CString(attributeName);
  _withThrowingErrorHandler((errorHandler) {
    runtimecore.RT_PolylineBarrier_setScaleFactorForCost(
        _handle, coreAttributeName.bytes, scaleFactor, errorHandler);
  });
}