Returns true if value A is within a certain distance from value B. The underlying expression performs the comparison: fabs( a - b ) <= tolerance;
int32 Within( double p_dValueA, double p_dValueB, double p_dTolerance )
Parameter Type | Parameter Name | Documentation |
---|---|---|
double | p_dValueA | A <float64> representing value A. |
double | p_dValueB | A <float64> representing value B. |
double | p_dTolerance | A <float64> representing the maximum distance to allow between value A and value B. |
None published. Please look for an example in the Scenome Scripting Language code base.