getScaleFactorForCost method

double getScaleFactorForCost(
  1. {required String attributeName}
)

Gets scale factor for cost.

Parameters:

  • attributeName — The name of attribute.

Return Value: A value of scale factor for cost.

Implementation

double getScaleFactorForCost({required String attributeName}) {
  final coreAttributeName = _CString(attributeName);
  return _withThrowingErrorHandler((errorHandler) {
    return runtimecore.RT_PolygonBarrier_getScaleFactorForCost(
        _handle, coreAttributeName.bytes, errorHandler);
  });
}