nn::nex::ErrorToleranceFunction::SetLinearError Member Function

Syntax

qBool SetLinearError(
     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 linear function operating on the error tolerance and distance.

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

For more information, see the programming manual.

See Also

ErrorToleranceFunction::SetParameters, ErrorToleranceFunction::SetConstantError, ErrorToleranceFunction::SetQuadraticError

Revision History

2012/09/03
Initial version.

CONFIDENTIAL