nn::nex::ErrorToleranceFunction::SetQuadraticError Member Function

Syntax

qBool SetQuadraticError(
     qReal dMinimumValue,
     qReal dMaximumValue,
     qReal dDistance
);

Parameters

Name Description
in dMinimumValue Specifies the minimum error tolerance.
in dMaximumValue Specifies the maximum error tolerance.
in dDistance Specifies the distance at which the maximum error tolerance is reached.

Return Values

Returns whether the setting was successful.
This function returns false and signals SYSTEMERROR_OBJDUP_INVALID_PARAMETER if the value of dDistance is negative or dMinimumValue is greater than dMaximumValue.

Description

Sets parameters used to determine the error tolerance using a quadratic (non-linear) function operating on the error tolerance and distance.

The operation is the same as executing SetParameters(dMinimumValue, 0, (dMaximumValue-dMinimumValue)/(dDistance*dDistance), dMaximumValue);.

For more information, see the programming manual.

See Also

ErrorToleranceFunction::SetParameters, ErrorToleranceFunction::SetConstantError, ErrorToleranceFunction::SetLinearError

Revision History

2012/09/03
Initial version.

CONFIDENTIAL